-
-
Save Sahu-Ayush/cee9ab484a2e731bece31a4f4cd56cab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable regions_as_objects { | |
type = list(object({ | |
zone = string | |
region = string | |
})) | |
default = [ | |
{ | |
zone = "us-east1-c" | |
region = "us-east1" | |
}, | |
{ | |
zone = "us-west1-c" | |
region = "us-west1" | |
} | |
] | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dynamic "database_flags" {
for_each = var.database_flags
content {
name = lookup(database_flags.value, "name", null)
value = lookup(database_flags.value, "value", null)
}
}
variable "database_flags" {
type = list(object({
name = string
value = string
}))
default = []
}
database_flags = [
{
name = "sql_mode"
value = "NO_ENGINE_SUBSTITUTION"
},
{
name = "character_set_server"
value = "utf8mb4"
},
{
name = "long_query_time"
value = "5"
}