-
Notifications
You must be signed in to change notification settings - Fork 427
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
Update project delete to empty s3 buckets before deleting #700
Comments
Hi @iamhopaul123 , just wondering if it's possible to achieve something similar when running |
Hello @gabelton. It's definitely not expected to run into this deletion issue. However, for the s3 bucket did you mean the s3 bucket in our addons? Or it's the same bucket Copilot creates through the stackset instance? |
Thanks for the quick reply @iamhopaul123 . I mean a bucket we create in our addons. The repo folder structure is
|
Gotcha. Sorry I don't think Copilot automatically does that for you because addons resources are defined and managed by users. You will have to manually emptying the bucket before deleting it entirely.
However, this is unexpected and surprising to me. Then maybe a custom resource that empties the bucket before bucket deletion might be your best bet https://stackoverflow.com/questions/40383470/can-i-force-cloudformation-to-delete-non-empty-s3-bucket |
Thanks @iamhopaul123 . I was looking at custom resources / lambda as a solution, but was hoping to avoid it, if there was something out-of-the-box that I was missing. Doesn't look like there is though |
Currently
project delete
will fail if users deployed a pipeline (basically because the s3 bucket will not be empty and throw an error when trying to delete them). We should clear all objects in s3 buckets before we try to delete them.The text was updated successfully, but these errors were encountered: