Skip to content
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

Check deletion results before determining success/failure #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jordan-brough
Copy link

We should look to see if any errors are returned here.

It's possible for errors to exist in these results. For example, if the AWS
user has permission to list the buckets but does not have permission to delete
the bucket items.

Example logs (after applying this patch):

Serverless: Failed: my-testing-bucket may not be empty.
Serverless: [[{"Key":"foo","Code":"AccessDenied","Message":"Access Denied"},{"Key":"bar","Code":"AccessDenied","Message":"Access Denied"}]]
S3 Remover: Failed: my-testing-bucket may not be empty.

It's possible for errors to exist in these results. For example, if the AWS
user has permission to list the buckets but does not have permission to delete
the bucket items.

Example logs (after applying this patch):

> Serverless: Failed: my-testing-bucket may not be empty.
> Serverless: `[[{"Key":"foo","Code":"AccessDenied","Message":"Access Denied"},{"Key":"bar","Code":"AccessDenied","Message":"Access Denied"}]]`
> S3 Remover: Failed: my-testing-bucket may not be empty.
@coyoteecd
Copy link

@sinofseven, can you merge these pending pull requests and publish a new version please? I tried to use this plugin today and ran into the same AccessDenied error that was reported as success.

@coyoteecd
Copy link

@jordan-brough since this project is no longer maintained, I published a reimplemented plugin that includes the error checking you and I asked here, see note in #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants