Cannot deploy same service to different stages


I have a bunch of services. all of these services are already deployed to dev stage, some were even deployed to stg as well.

I want to promote the current state of my services to dev, stg and prod. however, if I run sls deploy -s dev for service X and then run sls deploy -s stg or sls deploy -s prod I get a “stack with id XX does not exist” error.

I am sure I am missing something very basic - but have no idea what it is…

Thanks for your help.

This error usually occurs when I do not have enough S3 buckets capacity available. AWS by default only allows you 100 S3 buckets per AWS account. I am sure if you opened the AWS console for the account you are deploying to you would find there are a lot of S3 buckets you could delete.

1 Like