[Bug]: Unable to destroy s3_object in a versioned bucket in 5.6.x #32312
Labels
bug
Addresses a defect in current functionality.
service/s3
Issues and PRs that pertain to the s3 service.
Terraform Core Version
1.3.9
AWS Provider Version
5.6.0,5.6.1
Affected Resource(s)
aws_s3_object
Expected Behavior
Running destroy for an aws_s3_object in a versioned bucket should delete the object
Actual Behavior
Destroy fails
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
One difference observed between 5.5.0 and 5.6.0 in the DELETE API call is in the authorization header indicating an additional header:
5.5.0:
5.6.0:
with that header being empty:
Furthermore, this also reproduces if the bucket versioning is set to "Suspended" as well as "Enabled"
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: