You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform v0.11.11
+ provider.aws v1.60.0
+ provider.external v1.2.0
+ provider.null v2.1.2
+ provider.template v2.1.2
Your version of Terraform is out of date! The latest version
is 0.12.11. You can update by downloading from www.terraform.io/downloads.html
but it looks to be a problem in master as well
Crash Output
Failed to load backend: Error writing state: failed to upload state: InvalidRequest: Content-MD5 HTTP header is required for Put Object requests with Object Lock parameters
Expected Behavior
State should have been written to S3 bucket.
Actual Behavior
Terraform failed to write state to bucket with above error message.
Steps to Reproduce
Create an S3 bucket with object locks enabled, with a default mode of COMPLIANCE (the actual retention period is not important.
Cause terraform to attempt to write to it (apply works)
Get error.
Additional Context
Object lock makes it possible to lock object-versions so that they cannot be deleted; i.e. the specific object-version is retained for some retention period which not even the root user of the AWS account can override.
Ultimately I would have preferred this to have been a backend configuration option, but I was trying to avoid making a feature request :)
References
I couldn't find anything regarding object lock being used with the S3 backend.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
but it looks to be a problem in
master
as wellCrash Output
Expected Behavior
State should have been written to S3 bucket.
Actual Behavior
Terraform failed to write state to bucket with above error message.
Steps to Reproduce
COMPLIANCE
(the actual retention period is not important.Additional Context
Object lock makes it possible to lock object-versions so that they cannot be deleted; i.e. the specific object-version is retained for some retention period which not even the
root
user of the AWS account can override.Ultimately I would have preferred this to have been a backend configuration option, but I was trying to avoid making a feature request :)
References
I couldn't find anything regarding object lock being used with the S3 backend.
The call to
PutObject
happens around here. As the documents forPutObjectInput
state, theContentMD5
field must be set when using object lock parameters.The text was updated successfully, but these errors were encountered: