forked from realglobe-Inc/terraform-aws-static-website
-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
24 lines (20 loc) · 821 Bytes
/
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
output "cache_invalidation_command" {
description = "CloudFront edge cache invalidation command. /path/to/invalidation/resource is like /index.html /error.html"
value = "aws cloudfront create-invalidation --profile ${var.aws_profile} --distribution-id ${aws_cloudfront_distribution.web_dist.id} --paths /path/to/invalidation/resource"
}
output "s3_bucket_arn" {
description = "S3 Bucket arn"
value = aws_s3_bucket.hosting.arn
}
output "s3_bucket_id" {
description = "S3 Bucket name"
value = aws_s3_bucket.hosting.id
}
output "cf_distribution_arn" {
description = "Cloudfront distribution arn"
value = aws_cloudfront_distribution.web_dist.arn
}
output "cf_distribution_id" {
description = "Cloudfront distribution id"
value = aws_cloudfront_distribution.web_dist.id
}