Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Support for S3 Object Locks #6634

Closed
gwvandesteeg opened this issue Nov 28, 2018 · 3 comments
Closed

Feature request: Support for S3 Object Locks #6634

gwvandesteeg opened this issue Nov 28, 2018 · 3 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service.
Milestone

Comments

@gwvandesteeg
Copy link

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 "me too" comments, 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

Add support for the S3 Object Lock on the S3 bucket itself, and the S3 objects themselves as per the documentation.

  • S3 Object lock requires versioning to be enabled
  • S3 Object locks cannot be added to an existing bucket at this time

New or Affected Resource(s)

  • aws_s3_bucket
    Additionally would need to add the object specific locks depending on the API

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.
resource "aws_s3_bucket" "lockme" {
  bucket = "some-bucket-name"
  versioning {
    enabled = true
    object_lock = true
  }
}

References

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service. labels Dec 1, 2018
@bflad bflad added this to the v1.56.0 milestone Jan 16, 2019
@bflad
Copy link
Contributor

bflad commented Jan 16, 2019

Support for S3 object lock configuration in the aws_s3_bucket resource has been merged and will release with version 1.56.0 of the Terraform AWS provider, likely in the next few hours.

@bflad bflad closed this as completed Jan 16, 2019
@bflad
Copy link
Contributor

bflad commented Jan 16, 2019

This has been released in version 1.56.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service.
Projects
None yet
Development

No branches or pull requests

2 participants