outputs.tf
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
output "distribution_ids" {
  description = "Map of distribution logical key to CloudFront distribution ID"
  value       = { for k, v in aws_cloudfront_distribution.this : k => v.id }
}

output "distribution_arns" {
  description = "Map of distribution logical key to distribution ARN"
  value       = { for k, v in aws_cloudfront_distribution.this : k => v.arn }
}

output "distribution_domain_names" {
  description = "Map of distribution logical key to CloudFront domain name"
  value       = { for k, v in aws_cloudfront_distribution.this : k => v.domain_name }
}

output "distribution_hosted_zone_ids" {
  description = "Map of distribution logical key to hosted zone ID (for alias records)"
  value       = { for k, v in aws_cloudfront_distribution.this : k => v.hosted_zone_id }
}

output "oac_ids" {
  description = "Map of OAC logical key to OAC ID"
  value       = { for k, v in aws_cloudfront_origin_access_control.this : k => v.id }
}