Pass edition and other parameters to replicas
This commit is contained in:
committed by
Wiktor Niesiobędzki
parent
34e7d90448
commit
fc256165a4
@@ -96,7 +96,7 @@ module "db" {
|
||||
name = "db"
|
||||
prefix = "myprefix"
|
||||
region = var.region
|
||||
database_version = "POSTGRES_13"
|
||||
database_version = "POSTGRES_16"
|
||||
tier = "db-g1-small"
|
||||
|
||||
replicas = {
|
||||
|
||||
@@ -216,13 +216,19 @@ resource "google_sql_database_instance" "replicas" {
|
||||
|
||||
settings {
|
||||
tier = var.tier
|
||||
edition = var.edition
|
||||
deletion_protection_enabled = var.gcp_deletion_protection
|
||||
disk_autoresize = var.disk_size == null
|
||||
disk_autoresize_limit = var.disk_autoresize_limit
|
||||
disk_size = var.disk_size
|
||||
disk_type = var.disk_type
|
||||
# availability_type = var.availability_type
|
||||
user_labels = var.labels
|
||||
activation_policy = var.activation_policy
|
||||
user_labels = var.labels
|
||||
activation_policy = var.activation_policy
|
||||
collation = var.collation
|
||||
connector_enforcement = var.connector_enforcement
|
||||
time_zone = var.time_zone
|
||||
|
||||
|
||||
ip_configuration {
|
||||
ipv4_enabled = (
|
||||
|
||||
Reference in New Issue
Block a user