Skip to content

Commit

Permalink
updated outputs to match for_each changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zachreborn committed Mar 7, 2024
1 parent 2b3bd6b commit 86ee36b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions modules/aws/route53/zone/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
output "name_servers" {
value = aws_route53_zone.zone.name_servers
description = "A map of zones and their list of name servers."
value = {
for zone in aws_route53_zone.zone : zone.name => zone.name_servers
}
}

output "zone_id" {
value = aws_route53_zone.zone.zone_id
description = "A map of zones and their zone IDs."
value = {
for zone in aws_route53_zone.zone : zone.name => zone.zone_id
}
}
6 changes: 4 additions & 2 deletions modules/aws/route53/zone/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ variable "zones" {
# Example:
# zones = {
# "example.com" = {
# comment = "example.com"
# comment = "example.com"
# delegation_set_id = null
# },
# "example.net" = {
# comment = "example.net"
# comment = "example.net"
# delegation_set_id = null
# },
# "example.org" = {
# }
# }
}

0 comments on commit 86ee36b

Please sign in to comment.