Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple example of rich value types.
variable "route53_records_logshell" {
description = "logshell.io records"
type = map(object({
name = string
ttl = number
records = list(string)
type = string
}))
default = {
dev = {
name = "dev.logshell.io"
ttl = 60
records = ["127.0.0.1"]
type = "A"
zone_id = "1"
}
my = {
name = "my.logshell.io"
ttl = 60
records = ["127.0.0.1"]
type = "A"
zone_id = "1"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment