-
Notifications
You must be signed in to change notification settings - Fork 2
/
output.tf
84 lines (75 loc) · 2.5 KB
/
output.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
# Module : CLOUDFRONT DISTRIBUSTION
# Description : Creates an Amazon CloudFront web distribution
output "id" {
value = var.cdn_enabled ? concat(
aws_cloudfront_distribution.bucket[*].id,
aws_cloudfront_distribution.domain[*].id
)[0] : ""
description = "The identifier for the distribution."
}
output "arn" {
value = var.cdn_enabled ? concat(
aws_cloudfront_distribution.bucket[*].arn,
aws_cloudfront_distribution.domain[*].arn
)[0] : ""
description = "The ARN (Amazon Resource Name) for the distribution."
}
output "status" {
value = var.cdn_enabled ? concat(
aws_cloudfront_distribution.bucket[*].status,
aws_cloudfront_distribution.domain[*].status
)[0] : ""
description = "The current status of the distribution."
}
output "domain_name" {
value = var.cdn_enabled ? concat(
aws_cloudfront_distribution.bucket[*].domain_name,
aws_cloudfront_distribution.domain[*].domain_name
)[0] : ""
description = "The domain name corresponding to the distribution."
}
output "etag" {
value = var.cdn_enabled ? concat(
aws_cloudfront_distribution.bucket[*].etag,
aws_cloudfront_distribution.domain[*].etag
)[0] : ""
description = "The current version of the distribution's information."
}
output "hosted_zone_id" {
value = var.cdn_enabled ? concat(
aws_cloudfront_distribution.bucket[*].hosted_zone_id,
aws_cloudfront_distribution.domain[*].hosted_zone_id
)[0] : ""
description = "The CloudFront Route 53 zone ID that can be used to route an Alias Resource Record Set to."
}
# Module : CLOUDFRONT PUBLIC KEY
# Description : Creates a CloudFront public key
output "pubkey_id" {
value = concat(
aws_cloudfront_public_key.default[*].id
)
description = "The identifier for the public key."
}
output "pubkey_etag" {
value = concat(
aws_cloudfront_public_key.default[*].etag
)
description = "The current version of the public key."
}
# Module : CLOUDFRONT ORIGIN ACCESS IDENENTITY
# Description : Creates an Amazon CloudFront origin access identity
output "access_identity_id" {
value = concat(
aws_cloudfront_origin_access_identity.origin_access_identity[*].id
)
description = "The identifier for the distribution."
}
output "access_identity_etag" {
value = concat(aws_cloudfront_origin_access_identity.origin_access_identity[*].etag
)
description = "The current version of the origin access identity's information."
}
output "tags" {
value = module.labels.tags
description = "A mapping of tags to assign to the resource."
}