Skip to content

Conversation

@ferruzzi
Copy link
Contributor

Overview
delete_bucket requires that the bucket is empty before it can be deleted but does not provide a convenient empty_bucket method. We have found that on some edge cases, an API call might write logs or artifacts to the S3 bucket with a delay, which causes the delete_bucket task to fail if the object was added while we were iterating the list of objects. This PR attempts to ensure all objects are actually deleted by retrying (up to N times) until no objects remain before trying to delete the bucket.

@o-nikolas , @vincbeck , @vandonr-amz - This is the PR we discussed yesterday.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels May 10, 2023
@vandonr-amz
Copy link
Contributor

I wish we didn't have to do this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants