-
-
Notifications
You must be signed in to change notification settings - Fork 249
/
Copy pathoutputs.tf
89 lines (72 loc) · 2.57 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
output "cf_id" {
value = try(aws_cloudfront_distribution.default[0].id, "")
description = "ID of AWS CloudFront distribution"
}
output "cf_arn" {
value = try(aws_cloudfront_distribution.default[0].arn, "")
description = "ARN of AWS CloudFront distribution"
}
output "cf_status" {
value = try(aws_cloudfront_distribution.default[0].status, "")
description = "Current status of the distribution"
}
output "cf_domain_name" {
value = try(aws_cloudfront_distribution.default[0].domain_name, "")
description = "Domain name corresponding to the distribution"
}
output "cf_etag" {
value = try(aws_cloudfront_distribution.default[0].etag, "")
description = "Current version of the distribution's information"
}
output "cf_hosted_zone_id" {
value = try(aws_cloudfront_distribution.default[0].hosted_zone_id, "")
description = "CloudFront Route 53 zone ID"
}
output "cf_identity_iam_arn" {
value = try(aws_cloudfront_origin_access_identity.default[0].iam_arn, "")
description = "CloudFront Origin Access Identity IAM ARN"
}
output "cf_access_control_id" {
value = try(aws_cloudfront_origin_access_control.default[0].id, "")
description = "CloudFront Origin Access Control ID"
}
output "cf_origin_groups" {
value = try(flatten(aws_cloudfront_distribution.default[*].origin_group), [])
description = "List of Origin Groups in the CloudFront distribution."
}
output "cf_primary_origin_id" {
value = local.origin_id
description = "The ID of the origin created by this module."
}
output "cf_origin_ids" {
value = try(aws_cloudfront_distribution.default[0].origin[*].origin_id, [])
description = "List of Origin IDs in the CloudFront distribution."
}
output "cf_s3_canonical_user_id" {
value = try(aws_cloudfront_origin_access_identity.default[0].s3_canonical_user_id, "")
description = "Canonical user ID for CloudFront Origin Access Identity"
}
output "s3_bucket" {
value = local.bucket
description = "Name of origin S3 bucket"
}
output "s3_bucket_domain_name" {
value = local.bucket_domain_name
description = "Domain of origin S3 bucket"
}
output "s3_bucket_arn" {
value = local.origin_bucket.arn
description = "ARN of origin S3 bucket"
}
output "s3_bucket_policy" {
value = join("", aws_s3_bucket_policy.default[*].policy)
description = "Final computed S3 bucket policy"
}
output "logs" {
value = module.logs
description = "Log bucket resource"
}
output "aliases" {
value = var.aliases
description = "Aliases of the CloudFront distribution."
}