Open ghost opened 5 years ago
met the same issue
Same here!
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
This issue was originally opened by @brandonawells as hashicorp/terraform#20775. It was migrated here as a result of the provider split. The original body of the issue is below.
Hey everyone,
I just came across needing to make a metadata change to all my objects in a particular S3 bucket.
Current Terraform Version
Use-cases
I needed to update the Cache-Control max-age setting to all 1000+ objects already in the bucket.
Attempted Solutions
I only found a related attribute on the aws_s3_bucket_object and not on the aws_s3_bucket.
Proposal
Could there be a map type attribute, on the aws_s3_bucket resource, that we can list key-value pairs. The 'key' would match the metadata key types from S3:
Thanks