Cannot get bucket configuration information from s3 data source
#26,054 opened on Jul 29, 2022
Repository metrics
- Stars
- (11,045 stars)
- PR merge metrics
- (PR metrics pending)
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Since encryption at rest is a fundamental security requirement for companies like ours, it would be helpful to be able to retrieve the default encryption status of an s3 bucket. AWS s3 object encryption is available on the aws_s3_object resource and bucket policy configuration is available on the aws_s3_bucket_policy , so I was surprised to see that default bucket encryption configuration is not available. Similarly, it might also be useful to be able to get public access settings for a bucket.
New or Affected Resource(s)
- aws_s3_bucket
- aws_s3_bucket_policy
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/s3_bucket