Orignal Issue from: https://forums.aws.amazon.com/thread.jspa?threadID=294766&tstart=0
When added a bucket via amplify storage add and then the amplify push fails to complete, the S3 bucket won't be deleted. This means you have to manually delete the s3 bucket to re-attempt the amplify push.
Suggested fix: There should be some logic to detect if the bucket was newly created and delete the bucket on CloudFormation rollback.
I believe this should be labeled as as a bug, as this breaks all further deployments. Instead of failing, could it re-use the bucket? as in, must it fail in this case?
I see three possible solutions:
Thank you!
I think the best option is actually the 2nd one, simply check if the bucket exists and reuse it.
Option 3 isn't a good option in my opinion, there are too many situations where you would hit the default 100 bucket limit.
Most helpful comment
I think the best option is actually the 2nd one, simply check if the bucket exists and reuse it.
Option 3 isn't a good option in my opinion, there are too many situations where you would hit the default 100 bucket limit.