forked from cloudposse/terraform-aws-cloudfront-s3-cdn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
64 lines (52 loc) · 1.71 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
output "cf_id" {
value = aws_cloudfront_distribution.default.id
description = "ID of AWS CloudFront distribution"
}
output "cf_arn" {
value = aws_cloudfront_distribution.default.arn
description = "ARN of AWS CloudFront distribution"
}
output "cf_status" {
value = aws_cloudfront_distribution.default.status
description = "Current status of the distribution"
}
output "cf_domain_name" {
value = aws_cloudfront_distribution.default.domain_name
description = "Domain name corresponding to the distribution"
}
output "cf_etag" {
value = aws_cloudfront_distribution.default.etag
description = "Current version of the distribution's information"
}
output "cf_hosted_zone_id" {
value = aws_cloudfront_distribution.default.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_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 = join("", aws_s3_bucket.origin.*.arn)
description = "ARN of origin S3 bucket"
}
output "logs" {
value = module.logs
description = "Log bucket resource"
}
output "aliases" {
value = var.aliases
description = "Aliases of the CloudFront distibution"
}