Skip to content

Commit

Permalink
Adding outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
hmanzur committed Feb 16, 2021
1 parent 47db047 commit 65abec3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "aws_cloudfront_origin_access_identity" "default" {
count = var.cloudfront ? 1 : 0
}

resource "aws_cloudfront_distribution" "s3_distribution" {
resource "aws_cloudfront_distribution" "default" {
count = var.cloudfront ? 1 : 0

origin {
Expand Down
15 changes: 15 additions & 0 deletions output.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
output "s3_id" {
value = aws_s3_bucket.website.id
description = "S3 id"
}

output "website_endpoint" {
value = aws_s3_bucket.website.website_endpoint
description = "Website endpoint"
}

output "cloudfront_id" {
value = aws_cloudfront_distribution.default.id
description = "Cloudfront id"
}

output "domain_name" {
value = aws_cloudfront_distribution.default.domain_name
description = "Cloudfront domain name"
}

0 comments on commit 65abec3

Please sign in to comment.