Skip to content

Commit

Permalink
Added outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Fortuna committed May 6, 2020
1 parent 187d97c commit 2da24b7
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ No requirements.
| Name | Description |
|------|-------------|
| bucket\_id | n/a |
| hosted\_zone\_id | n/a |
| website\_domain | n/a |

8 changes: 8 additions & 0 deletions modules/encrypted/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
output "bucket_id" {
value = module.encrypted_bucket.bucket_id
}

output "website_domain" {
value = module.encrypted_bucket.website_domain
}

output "hosted_zone_id" {
value = module.encrypted_bucket.hosted_zone_id
}
10 changes: 9 additions & 1 deletion modules/public/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
output "bucket_id" {
value = module.encrypted_bucket.bucket_id
value = module.public_bucket.bucket_id
}

output "website_domain" {
value = module.public_bucket.website_domain
}

output "hosted_zone_id" {
value = module.public_bucket.hosted_zone_id
}
1 change: 1 addition & 0 deletions modules/public/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ variable "encrypted" {

variable "encryption_key" {
description = "The KMS master key used for server-side encryption"
default = ""
}

variable "logging_bucket" {
Expand Down
8 changes: 8 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
output "bucket_id" {
value = aws_s3_bucket.bucket[0].id
}

output "website_domain" {
value = aws_s3_bucket.bucket[0].website_domain
}

output "hosted_zone_id" {
value = aws_s3_bucket.bucket[0].hosted_zone_id
}

0 comments on commit 2da24b7

Please sign in to comment.