Skip to content

Commit

Permalink
PLT-0 - Add output for additional zones
Browse files Browse the repository at this point in the history
  • Loading branch information
Engerim committed Jan 2, 2024
1 parent 1ed00ed commit e93afa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ This module will create cdn endpoint with alias and SSL-certificate and optional
|------|-------------|
| <a name="output_certificate_arn"></a> [certificate\_arn](#output\_certificate\_arn) | ARN of ACM SSL certificate created for CloudFront |
| <a name="output_cloudfront_alias"></a> [cloudfront\_alias](#output\_cloudfront\_alias) | Alias hostname of CloudFront distribution |
| <a name="output_cloudfront_alias_additional_zones"></a> [cloudfront\_alias\_additional\_zones](#output\_cloudfront\_alias\_additional\_zones) | Alias hostname of CloudFront distribution for additional zones |
| <a name="output_cloudfront_arn"></a> [cloudfront\_arn](#output\_cloudfront\_arn) | ARN of CloudFront distribution creates |
| <a name="output_cloudfront_hosted_zone_id"></a> [cloudfront\_hosted\_zone\_id](#output\_cloudfront\_hosted\_zone\_id) | Hosted Zone ID CloudFront distribution uses |
| <a name="output_cloudfront_id"></a> [cloudfront\_id](#output\_cloudfront\_id) | ID CloudFront distribution ID |
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ output "cloudfront_alias" {
description = "Alias hostname of CloudFront distribution"
value = try(aws_route53_record.this[0].fqdn, null)
}

output "cloudfront_alias_additional_zones" {
description = "Alias hostname of CloudFront distribution for additional zones"
value = { for k, v in aws_route53_record.additional_records : k => v.fqdn }
}

0 comments on commit e93afa4

Please sign in to comment.