diff --git a/README.md b/README.md index 30eea62..41ebb63 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,7 @@ No modules. | [s3\_bucket\_lifecycle\_configuration\_rules](#output\_s3\_bucket\_lifecycle\_configuration\_rules) | The lifecycle rules of the bucket, if the bucket is configured with lifecycle rules. If not, this will be an empty string. | | [s3\_bucket\_policy](#output\_s3\_bucket\_policy) | The policy of the bucket, if the bucket is configured with a policy. If not, this will be an empty string. | | [s3\_bucket\_region](#output\_s3\_bucket\_region) | The AWS region this bucket resides in. | +| [s3\_bucket\_tags](#output\_s3\_bucket\_tags) | Tags of the bucket. | | [s3\_bucket\_website\_domain](#output\_s3\_bucket\_website\_domain) | The domain of the website endpoint, if the bucket is configured with a website. If not, this will be an empty string. This is used to create Route 53 alias records. | | [s3\_bucket\_website\_endpoint](#output\_s3\_bucket\_website\_endpoint) | The website endpoint, if the bucket is configured with a website. If not, this will be an empty string. | | [s3\_directory\_bucket\_arn](#output\_s3\_directory\_bucket\_arn) | ARN of the directory bucket. | diff --git a/outputs.tf b/outputs.tf index 444c414..3874afd 100644 --- a/outputs.tf +++ b/outputs.tf @@ -62,3 +62,8 @@ output "aws_s3_bucket_versioning_status" { description = "The versioning status of the bucket. Will be 'Enabled', 'Suspended', or 'Disabled'." value = try(aws_s3_bucket_versioning.this[0].versioning_configuration[0].status, null) } + +output "s3_bucket_tags" { + description = "Tags of the bucket." + value = try(aws_s3_bucket.this[0].tags, {}) +}