Skip to content

Instantly share code, notes, and snippets.

@cruftyoldsysadmin
Created September 3, 2019 17:15
Show Gist options
  • Save cruftyoldsysadmin/7cfc543e846b231f45675747c2e4b14a to your computer and use it in GitHub Desktop.
Save cruftyoldsysadmin/7cfc543e846b231f45675747c2e4b14a to your computer and use it in GitHub Desktop.
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