Skip to content

Commit deaf58e

Browse files
authored
refactor: make the s3 bucket name available (#164)
Signed-off-by: Gabor Boros <gabor@opencraft.com>
1 parent 8d2c102 commit deaf58e

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

terraform/modules/aws/s3/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ No modules.
4747
| <a name="output_bucket_arn"></a> [bucket\_arn](#output\_bucket\_arn) | The unique resource ID of the bucket. |
4848
| <a name="output_bucket_domain_name"></a> [bucket\_domain\_name](#output\_bucket\_domain\_name) | The domain name of the bucket, including the generated prefix. |
4949
| <a name="output_bucket_id"></a> [bucket\_id](#output\_bucket\_id) | The ID of the bucket that is generated during creation. |
50+
| <a name="output_bucket_name"></a> [bucket\_name](#output\_bucket\_name) | The name of the S3 bucket. |

terraform/modules/aws/s3/outputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ output "bucket_arn" {
88
description = "The unique resource ID of the bucket."
99
}
1010

11+
output "bucket_name" {
12+
value = aws_s3_bucket.s3_bucket.name
13+
description = "The name of the S3 bucket."
14+
}
15+
1116
output "bucket_domain_name" {
1217
value = aws_s3_bucket.s3_bucket.bucket_domain_name
1318
description = "The domain name of the bucket, including the generated prefix."
1419
}
20+

0 commit comments

Comments
 (0)