Skip to main content
selectel_dbaas_firewall_v1
Last update:

selectel_dbaas_firewall_v1

For your information

This instruction is a copy of the Selectel Terraform provider's documentation in the 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