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
Cannot use serverless remove when using existing buckets with s3 events #6905
Comments
Hey @joshuaduffy thanks for opening 👍 This happens because you create and remove the bucket with the stack. Apparently the bucket is remove before the event source gets removed, that's why you see the error. You could use a |
No worries, thank you for the information. Still experiencing the same issue when I use |
@joshuaduffy I'm experiencing the same problem, could you solve it? |
Facing the same issue. Any workaround? |
Is there a solution for this issue?? I integrated my project with serverless pro CI/CD and it is failing in the "destruction" job. This job basically runs |
Having the same issue. |
I have a similar issue. On my case I don't create the bucket in resources section, I just use a pre-existing one on my lambda. Could it be related with role permissions? I see there is two possible actions related to Event Notifications on S3 service GetBucketNotification and PutBucketNotification. |
@rafaeldasilva I have the same issue. |
I had the same issue. I deleted the bucket by hand (and the cloudformation associated but not sure it was needed). Then I re-run the pipeline on gitlab (or whatever) and it worked |
I got the same error message. I solve the problem by adding the permission to the lambda for the resource (ex. S3) after removing the lambda in CloudFormation. |
Bug Report
Description
Observed with latest version of serverless 1.55.1
What did you do?
Ran
serverless remove
to delete a stack that contains a number of lambdas that are attached an existing bucket (as detailed in https://serverless.com/framework/docs/providers/aws/events/s3/#using-existing-buckets)What happened?
Stack failed to delete with:
Stack should delete.
serverless.yml
file?Bucket created in resources section...
... and referenced with
existing=true
flagThe text was updated successfully, but these errors were encountered: