diff --git a/README.md b/README.md index c3ce5d4..79661b9 100644 --- a/README.md +++ b/README.md @@ -280,6 +280,7 @@ No modules. | Name | Description | |------|-------------| +| [aws\_s3\_bucket\_versioning\_status](#output\_aws\_s3\_bucket\_versioning\_status) | The versioning status of the bucket. Will be 'Enabled', 'Suspended', or 'Disabled'. | | [s3\_bucket\_arn](#output\_s3\_bucket\_arn) | The ARN of the bucket. Will be of format arn:aws:s3:::bucketname. | | [s3\_bucket\_bucket\_domain\_name](#output\_s3\_bucket\_bucket\_domain\_name) | The bucket domain name. Will be of format bucketname.s3.amazonaws.com. | | [s3\_bucket\_bucket\_regional\_domain\_name](#output\_s3\_bucket\_bucket\_regional\_domain\_name) | The bucket region-specific domain name. The bucket domain name including the region name, please refer here for format. Note: The AWS CloudFront allows specifying S3 region-specific endpoint when creating S3 origin, it will prevent redirect issues from CloudFront to S3 Origin URL. | diff --git a/outputs.tf b/outputs.tf index d67d0c4..444c414 100644 --- a/outputs.tf +++ b/outputs.tf @@ -57,3 +57,8 @@ output "s3_directory_bucket_arn" { description = "ARN of the directory bucket." value = try(aws_s3_directory_bucket.this[0].arn, null) } + +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) +}