selectel_dbaas_firewall_v1
Эта инструкция — копия документации Selectel Terraform-провайдера в Terraform Registry.
Creates and manages a list of IP-addresses with access to a datastore in Managed Databases using public API v1. For more information about a firewall, see the official Selectel documentation for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL sync, MySQL semi-sync, Kafka, and Redis.
Example usage for PostgreSQL, PostgreSQL TimescaleDB, PostgreSQL for 1C
resource "selectel_dbaas_firewall_v1" "firewall_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
datastore_id = selectel_dbaas_postgresql_datastore_v1.datastore_1.id
ips = [ "127.0.0.1" ]
}
Example usage for MySQL semi-sync and MySQL sync
resource "selectel_dbaas_firewall_v1" "firewall_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
datastore_id = selectel_dbaas_mysql_datastore_v1.datastore_1.id
ips = [ "127.0.0.1" ]
}
Example usage for Redis
resource "selectel_dbaas_firewall_v1" "firewall_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
datastore_id = selectel_dbaas_redis_datastore_v1.datastore_1.id
ips = [ "127.0.0.1" ]
}
Example usage for Kafka
resource "selectel_dbaas_firewall_v1" "firewall_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
datastore_id = selectel_dbaas_redis_datastore_v1.datastore_1.id
ips = [ "127.0.0.1" ]
}
Argument Reference
-
project_id
— (Required) Unique identifier of the associated project. Changing this creates a new datastore. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Projects. -
region
— (Required) Pool where the database is located, for example,ru-3
. Changing this creates a new datastore. Learn more about available pools in the Availability matrix. -
datastore_id
— (Required) Unique identifier of the associated datastore. Changing this updates the list of IP-addresses with access to the datastore. Retrieved from the selectel_dbaas_postgresql_datastore_v1, selectel_dbaas_mysql_datastore_v1, selectel_dbaas_redis_datastore_v1 or selectel_dbaas_kafka_datastore_v1 resource depending on the datastore type you use. -
ips
— (Required) List of IP-addresses with access to the datastore.