Skip to content

Commit

Permalink
add zones_account_id, zones_region
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 3, 2023
1 parent 4dcc0eb commit 63158ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions route53-zone-association/vpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,5 @@ No modules.
| Name | Description |
|------|-------------|
| <a name="output_zones"></a> [zones](#output\_zones) | Map of zone ids to zone names for PHZs |
| <a name="output_zones_account_id"></a> [zones\_account\_id](#output\_zones\_account\_id) | AWS Account ID where zone(s) is defined |
| <a name="output_zones_region"></a> [zones\_region](#output\_zones\_region) | AWS Region where zone(s) is defined |
10 changes: 10 additions & 0 deletions route53-zone-association/vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,13 @@ 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 }
}

output "zones_account_id" {
description = "AWS Account ID where zone(s) is defined"
value = data.aws_caller_identity.peer.account_id
}

output "zones_region" {
description = "AWS Region where zone(s) is defined"
value = data.aws_region.peer.name
}

0 comments on commit 63158ad

Please sign in to comment.