Skip to content

Commit

Permalink
Add bucket_regoinal_domain_name as an output (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: Andriy Knysh <[email protected]>
Co-authored-by: Erik Osterman <[email protected]>
  • Loading branch information
3 people authored Jun 10, 2020
1 parent f5b2162 commit 6708174
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ Available targets:
| bucket_arn | Bucket ARN |
| bucket_domain_name | FQDN of bucket |
| bucket_id | Bucket Name (aka ID) |
| bucket_regional_domain_name | The bucket region-specific domain name |
| enabled | Is module enabled |
| secret_access_key | The secret access key. This will be written to the state file in plain-text |
| user_arn | The ARN assigned by AWS for the user |
Expand Down
1 change: 1 addition & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
| bucket_arn | Bucket ARN |
| bucket_domain_name | FQDN of bucket |
| bucket_id | Bucket Name (aka ID) |
| bucket_regional_domain_name | The bucket region-specific domain name |
| enabled | Is module enabled |
| secret_access_key | The secret access key. This will be written to the state file in plain-text |
| user_arn | The ARN assigned by AWS for the user |
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ output "bucket_domain_name" {
description = "FQDN of bucket"
}

output "bucket_regional_domain_name" {
value = var.enabled ? join("", aws_s3_bucket.default.*.bucket_regional_domain_name) : ""
description = "The bucket region-specific domain name"
}

output "bucket_id" {
value = var.enabled ? join("", aws_s3_bucket.default.*.id) : ""
description = "Bucket Name (aka ID)"
Expand Down

0 comments on commit 6708174

Please sign in to comment.