-
Notifications
You must be signed in to change notification settings - Fork 5
/
outputs.tf
111 lines (102 loc) · 3.04 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
output "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."
value = local.trusted_signers[0]
}
output "arn" {
description = "The ARN (Amazon Resource Name) for the distribution."
value = element(
coalescelist(
aws_cloudfront_distribution.cf_distribution.*.arn,
aws_cloudfront_distribution.cf_distribution_no_s3_origin_config.*.arn,
[""],
),
0,
)
}
output "caller_reference" {
description = "Internal value used by CloudFront to allow future updates to the distribution configuration."
value = element(
coalescelist(
aws_cloudfront_distribution.cf_distribution.*.caller_reference,
aws_cloudfront_distribution.cf_distribution_no_s3_origin_config.*.caller_reference,
[""],
),
0,
)
}
output "domain_name" {
description = "The domain name corresponding to the distribution."
value = element(
coalescelist(
aws_cloudfront_distribution.cf_distribution.*.domain_name,
aws_cloudfront_distribution.cf_distribution_no_s3_origin_config.*.domain_name,
[""],
),
0,
)
}
output "etag" {
description = "The current version of the distribution's information."
value = element(
coalescelist(
aws_cloudfront_distribution.cf_distribution.*.etag,
aws_cloudfront_distribution.cf_distribution_no_s3_origin_config.*.etag,
[""],
),
0,
)
}
output "hosted_zone_id" {
description = "The CloudFront Route 53 zone ID that can be used to route an Alias Resource Record Set to."
value = element(
coalescelist(
aws_cloudfront_distribution.cf_distribution.*.hosted_zone_id,
aws_cloudfront_distribution.cf_distribution_no_s3_origin_config.*.hosted_zone_id,
[""],
),
0,
)
}
output "id" {
description = "The identifier for the distribution."
value = element(
coalescelist(
aws_cloudfront_distribution.cf_distribution.*.id,
aws_cloudfront_distribution.cf_distribution_no_s3_origin_config.*.id,
[""],
),
0,
)
}
output "in_progress_validation_batches" {
description = "The number of invalidation batches currently in progress."
value = element(
coalescelist(
aws_cloudfront_distribution.cf_distribution.*.in_progress_validation_batches,
aws_cloudfront_distribution.cf_distribution_no_s3_origin_config.*.in_progress_validation_batches,
[""],
),
0,
)
}
output "last_modified_time" {
description = "The date and time the distribution was last modified."
value = element(
coalescelist(
aws_cloudfront_distribution.cf_distribution.*.last_modified_time,
aws_cloudfront_distribution.cf_distribution_no_s3_origin_config.*.last_modified_time,
),
0,
)
}
output "status" {
description = "The current status of the distribution."
value = element(
coalescelist(
aws_cloudfront_distribution.cf_distribution.*.status,
aws_cloudfront_distribution.cf_distribution_no_s3_origin_config.*.status,
[""],
),
0,
)
}