Add aws_s3_cors_document resource #6266
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/s3
Issues and PRs that pertain to the s3 service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Community Note
Currently, an AWS S3 CORS Document is constructed using a collection of cors_rule objects in the aws_s3_bucket resource. In addition, the existence or absence of these rules modifies a CORS Document added to the bucket out-of-band (manually or outside of a Terraform run). Apparently, this is a feature..
Unfortunately, this creates the following situation:
I propose the addition of an aws_s3_cors_document resource that can be defined and associated with an aws_s3_bucket resource in a fashion similar to how an aws_s3_bucket_policy is associated. The user should have the ability to define the document inline (e.g. routing_rules) or load from a file using the file() function, or use a rendered template.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: