serverless-screenshot icon indicating copy to clipboard operation
serverless-screenshot copied to clipboard

Deploy fails if S3 bucket already exists

Open rjbrown99 opened this issue 8 years ago • 2 comments
trafficstars

I have noticed that the sls deploy command fails if the target S3 bucket already exists. An example below for 'my-bucket'. Note that in my case, the target bucket is my own and was independently created in the AWS console.

Serverless Error --------------------------------------- An error occurred while provisioning your stack: S3BucketMybucket - my-bucket already exists.

rjbrown99 avatar Dec 16 '16 06:12 rjbrown99

Have you found a resolution to this issue or has there been any updates outside of this thread?

allensallinger avatar May 24 '17 06:05 allensallinger

This is becoming a major headache for me. Too often CloudFormation messes up so I have to delete and then rebuild my stack, and I really don't want to have delete s3 buckets every time.

Anyone got an answer to this?

sanddevil avatar Feb 22 '18 13:02 sanddevil