ks888 / LambStatus

[Maintenance mode] Serverless Status Page System
https://lambstatus.github.io
Apache License 2.0
1.3k stars 119 forks source link

Delete stack fails #69

Open chris-scentregroup opened 6 years ago

chris-scentregroup commented 6 years ago

Status reason: The following resource(s) failed to delete: [AdminPageS3, StatusPageS3].

Do we need doc on stack delete? Or can this be covered in stack delete? I'll try to just delete the buckets and run stack delete again..

ks888 commented 6 years ago

Umm... I think it is because the S3 bucket is not empty. One option is to delete the contents of the bucket on stack delete. There might be better options which utilize a feature of CloudFormation. Need to investigate more.

jpike88 commented 6 years ago

Just ran into this issue when doing an update... painful

jpike88 commented 6 years ago

https://stackoverflow.com/questions/40383470/can-i-force-cloudformation-to-delete-non-empty-s3-bucket

jpike88 commented 6 years ago

Looks like it's not easily built into the cloudformation policy itself.

Perhaps makes more sense to trigger update or delete from the admin panel... that way any pre-update/delete scripts can run first.