arvancloud_dbaas_postgresql_security_whitelist (Resource)
Sets the IPv4/CIDR whitelist for a DBaaS instance. Terraform keeps the configured list in state. Destroy sends an empty list to clear rules.
Example Usage
resource "arvancloud_dbaas_postgresql_primary_instance" "db" {
name = "app-postgresql"
availability_zone = "ir-thr-ba1"
flavor_ref = "g2-4-2-0"
datastore_version = "17.3"
volume_size = 50
tags = ["tf", "postgresql"]
}
resource "arvancloud_dbaas_postgresql_security_whitelist" "example" {
instance_id = arvancloud_dbaas_postgresql_primary_instance.db.id
ip_cidrs = [
"192.168.1.0/24",
"10.0.0.5/32"
]
}