Skip to content

Commit

Permalink
add output zones
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 3, 2023
1 parent 4f45225 commit b31d4c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion route53-zone-association/vpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ No modules.

## Outputs

No outputs.
| Name | Description |
|------|-------------|
| <a name="output_zones"></a> [zones](#output\_zones) | Map of zone ids to zone names for PHZs |
5 changes: 5 additions & 0 deletions route53-zone-association/vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,8 @@ resource "aws_route53_zone_association" "peer_zones" {

depends_on = [aws_route53_vpc_association_authorization.peer_zones]
}

output "zones" {
description = "Map of zone ids to zone names for PHZs"
value = { for k, v in data.aws_route53_zone.zones : v.zone_id => k }
}

0 comments on commit b31d4c5

Please sign in to comment.