hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.17k forks source link

S3 Bucket Metadata key-value attribute #8037

Open ghost opened 5 years ago

ghost commented 5 years ago

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

Terraform v0.11.10
+ provider.aws v1.56.0

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

ChrisXxxck commented 5 years ago

met the same issue

joaogolias commented 3 years ago

Same here!

github-actions[bot] commented 1 year ago

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!