forked from schammah/terraform-aws-cloudfront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
54 lines (44 loc) · 3.27 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
output "id" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].id : ""
description = "The identifier for the distribution. For example: EDFDVBD632BHDS5."
}
output "arn" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].arn : ""
description = "The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID."
}
output "caller_reference" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].caller_reference : ""
description = "Internal value used by CloudFront to allow future updates to the distribution configuration."
}
output "status" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].status : ""
description = "The current status of the distribution. Deployed if the distribution's information is fully propagated throughout the Amazon CloudFront system."
}
output "trusted_signers" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].trusted_signers : []
description = "The key pair IDs that CloudFront is aware of for each trusted signer, if the distribution is set up to serve private content with signed URLs."
}
output "domain_name" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].domain_name : ""
description = "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net."
}
output "name" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].domain_name : ""
description = "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net."
}
output "last_modified_time" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].last_modified_time : ""
description = "The date and time the distribution was last modified."
}
output "in_progress_validation_batches" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].in_progress_validation_batches : ""
description = "The number of invalidation batches currently in progress."
}
output "etag" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].etag : ""
description = "The current version of the distribution's information. For example: E2QWRUHAPOMQZL."
}
output "hosted_zone_id" {
value = length(aws_cloudfront_distribution.cloudfront_distribution) > 0 ? aws_cloudfront_distribution.cloudfront_distribution[0].hosted_zone_id : ""
description = "The CloudFront Route 53 zone ID that can be used to route an Alias Resource Record Set to. This attribute is simply an alias for the zone ID Z2FDTNDATAQYW2."
}