-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: s3_bucket_versioning
fails to delete due to a "A conflicting conditional operation"
#33478
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
@jasonarewhy Thanks for raising this issue 👏. terraform-provider-aws/internal/service/s3/service_package.go Lines 35 to 43 in 51c0d52
aws_s3_bucket_versioning resource to AWS SDK for Go v2.
|
I have run into similar issues with other S3 related resources while upgrading some modules to AWS Provider 5. I will be holding off doing any more until these get resolved. e.g. This one was on an S3 bucket with a aws_s3_bucket_policy also defined. error 16-Sep-2023 01:14:09 Error: putting S3 Bucket (mybucket) Policy: operation error S3: PutBucketPolicy, https response error StatusCode: 409, ..., api error OperationAborted: A conflicting conditional operation is currently in progress against this resource. Please try again. I got these when destroying my module
Hopefully these issues will also be addressed by the code you didn't migrate. |
Can confirm that this also happens when creating entirely new resources. We do so when testing our terraform modules with terratest:
|
I am experiencing the same error when using terraform-provider-aws |
This functionality has been released in v5.18.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. |
Terraform Core Version
1.3.9
AWS Provider Version
5.17.0
Affected Resource(s)
s3_bucket_versioning
Expected Behavior
s3_bucket_versioning
can be destroyed without error.An example of the resources being destroyed:
Actual Behavior
s3_bucket_versioning
destroy operation errors out with:This seems to have been introduced in
5.17.0
. I've tested with both5.16.0
and5.14.0
and was able to destroy without an issues. Looks like a reintroduction of #7628.Relevant Error/Panic Output Snippet
Error: deleting S3 Bucket Versioning (example-bucket): operation error S3: PutBucketVersioning, https response error StatusCode: 409... api error OperationAborted: A conflicting conditional operation is currently in progress against this resource. Please try again.
Terraform Configuration Files
example.zip
Steps to Reproduce
s3_bucket...
resources (see plan above as an example)Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: