aws_s3_bucket_policy data source #17649
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
new-data-source
Introduces a new data source.
service/s3
Issues and PRs that pertain to the s3 service.
Milestone
Community Note
Description
Re-opening a very old request (#6977) for the S3 Bucket Policy data-source as I feel it warrants an actual discussion request.
We have a few situations where we'd like to be able to reference an existing S3 Bucket Policy to append an new Statement into it then apply that policy 'back' to the S3 bucket (using aws_iam_policy_document and source_json to perform the merge).
Currently we're just using a separate S3 Object to 'mirror' this S3 Bucket Policy and reading/writing to that object before/after the Bucket Policy application, but this is hacky and involves extra steps and increases the chances of failure!
New or Affected Resource(s)
aws_s3_bucket_policy
Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: