-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_s3_bucket: Fix crash when force_destroy = true
and there are delete markers in the bucket
#34712
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
% make testacc TESTARGS='-run=TestAccS3Bucket_Basic_forceDestroy' PKG=s3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run=TestAccS3Bucket_Basic_forceDestroy -timeout 360m
=== RUN TestAccS3Bucket_Basic_forceDestroy
=== PAUSE TestAccS3Bucket_Basic_forceDestroy
=== RUN TestAccS3Bucket_Basic_forceDestroyWithObjectVersions
=== PAUSE TestAccS3Bucket_Basic_forceDestroyWithObjectVersions
=== RUN TestAccS3Bucket_Basic_forceDestroyWithEmptyPrefixes
=== PAUSE TestAccS3Bucket_Basic_forceDestroyWithEmptyPrefixes
=== RUN TestAccS3Bucket_Basic_forceDestroyWithObjectLockEnabled
=== PAUSE TestAccS3Bucket_Basic_forceDestroyWithObjectLockEnabled
=== CONT TestAccS3Bucket_Basic_forceDestroy
=== CONT TestAccS3Bucket_Basic_forceDestroyWithEmptyPrefixes
=== CONT TestAccS3Bucket_Basic_forceDestroyWithObjectLockEnabled
=== CONT TestAccS3Bucket_Basic_forceDestroyWithObjectVersions
--- PASS: TestAccS3Bucket_Basic_forceDestroyWithEmptyPrefixes (43.45s)
--- PASS: TestAccS3Bucket_Basic_forceDestroy (43.46s)
--- PASS: TestAccS3Bucket_Basic_forceDestroyWithObjectVersions (65.29s)
--- PASS: TestAccS3Bucket_Basic_forceDestroyWithObjectLockEnabled (65.56s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 68.932s
This functionality has been released in v5.30.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 pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Correctly iterate over delete markers instead of the object versions twice.
Relations
Closes #34706.
Relates #34647.
Output from Acceptance Testing
Prior to the fix
TestAccS3Bucket_Basic_forceDestroyWithObjectVersions
would hang.