We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd3895 commit c84b705Copy full SHA for c84b705
infrastructure/modules/cloudfront/output.tf
@@ -1,8 +1,8 @@
1
output "cloudfront_url" {
2
- value = aws_cloudfront_distribution.distribution[count.index].domain_name
+ value = var.has_secondary_bucket ? aws_cloudfront_distribution.distribution_with_secondary_bucket[0].domain_name : aws_cloudfront_distribution.distribution[0].domain_name
3
}
4
5
output "cloudfront_arn" {
6
description = "The ARN of the CloudFront Distribution"
7
- value = aws_cloudfront_distribution.distribution[count.index].arn
+ value = var.has_secondary_bucket ? aws_cloudfront_distribution.distribution_with_secondary_bucket[0].arn : aws_cloudfront_distribution.distribution[0].arn
8
0 commit comments