terraform/ecc-gcp-473-configured_automatic_storage_increase_limit/red/sql.tf (16 lines of code) (raw):
resource "random_id" "this" {
byte_length = 4
}
resource "google_sql_database_instance" "this" {
name = "${var.dbname}-${random_id.this.hex}-473-red"
database_version = var.dbver
region = var.region
deletion_protection = false
settings {
user_labels = {
custodiarule = "ecc-gcp-473-configured_automatic_storage_increase_limit"
compliancestatus = "red"
}
tier = var.tier
}
}