-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Support PutBucketReplication x-amz-bucket-object-lock-token #14061
Comments
@prettymuchbryce Thanks for raising this issue. |
Hi @ewbankkit. Yes. That is my expectation given my understanding of this token. |
hi @ewbankkit I'm facing the exact same issue. "Error putting S3 replication configuration: InvalidRequest: Replication configuration cannot be applied to an Object Lock enabled bucket" Indeed, after contacting the AWS support team, they provided us with a token that needs to be passed as described by @prettymuchbryce @prettymuchbryce did you bypass the problem by making your own api calls to the aws s3 api ? |
@ewbankkit Hi, is there any plan to tackle this issue at short term? any PR in progress i could review/test ? |
Hi, any update on this? It's really needed |
👍 |
FWIW, I've observed that as long as the configuration applied by |
This functionality has been released in v4.5.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Community Note
Description
AWS S3 allows for creating both a
replication_configuration
as well as anobject_lock_configuration
. However, if used together, then AWS support must be contacted and a token (x-amz-bucket-object-lock-token
) supplied to enable the combination of both replication and object locking for an S3 bucket.After contacting AWS support, the AWS support team instructs you run a command like this with a
<TOKEN>
that they supply.This
<TOKEN>
is mapped to thex-amz-bucket-object-lock-token
header in the request toPutBucketReplication
.Currently there is no way to manage this configuration through Terraform.
New or Affected Resource(s)
References
The text was updated successfully, but these errors were encountered: