Skip to content

Commit 6708174

Browse files
adamcrewsaknyshosterman
authored
Add bucket_regoinal_domain_name as an output (#28)
Co-authored-by: Andriy Knysh <[email protected]> Co-authored-by: Erik Osterman <[email protected]>
1 parent f5b2162 commit 6708174

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ Available targets:
162162
| bucket_arn | Bucket ARN |
163163
| bucket_domain_name | FQDN of bucket |
164164
| bucket_id | Bucket Name (aka ID) |
165+
| bucket_regional_domain_name | The bucket region-specific domain name |
165166
| enabled | Is module enabled |
166167
| secret_access_key | The secret access key. This will be written to the state file in plain-text |
167168
| user_arn | The ARN assigned by AWS for the user |

docs/terraform.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
| bucket_arn | Bucket ARN |
4242
| bucket_domain_name | FQDN of bucket |
4343
| bucket_id | Bucket Name (aka ID) |
44+
| bucket_regional_domain_name | The bucket region-specific domain name |
4445
| enabled | Is module enabled |
4546
| secret_access_key | The secret access key. This will be written to the state file in plain-text |
4647
| user_arn | The ARN assigned by AWS for the user |

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ output "bucket_domain_name" {
33
description = "FQDN of bucket"
44
}
55

6+
output "bucket_regional_domain_name" {
7+
value = var.enabled ? join("", aws_s3_bucket.default.*.bucket_regional_domain_name) : ""
8+
description = "The bucket region-specific domain name"
9+
}
10+
611
output "bucket_id" {
712
value = var.enabled ? join("", aws_s3_bucket.default.*.id) : ""
813
description = "Bucket Name (aka ID)"

0 commit comments

Comments
 (0)