amazon-archives / realworld-serverless-application

This project is inspired by the design and development of the AWS Serverless Application Repository - a production-grade AWS service. Learn how AWS built a production service using serverless technologies.
Apache License 2.0
515 stars 108 forks source link

Cannot create multiple stacks #44

Closed arun-gupta closed 4 years ago

arun-gupta commented 4 years ago

Had a CloudFormation stack already deployed and could access the website. Tried to build from the source and deploy it again as:

aws cloudformation deploy --template-file target/sam/app/packaged-template.yaml --capabilities CAPABILITY_IAM CAPABILITY_AUTO_EXPAND --stack-name realworld-serverless-app

The stack could not be created and gave the error:

Embedded stack arn:aws:cloudformation:us-east-1:091144949931:stack/realworld2-Backend-1FRU9J92MJ6YQ/3f78b710-ed16-11e9-a33f-1207b4ca758c was not successfully created: The following resource(s) failed to create: [Database].

Tried this a couple of times and got the exact same error.

Deleted the original stack, and then this new stack could be successfully deployed.

Might be related to https://github.com/awslabs/realworld-serverless-application/issues/42

jlhood commented 4 years ago

@arun-gupta It's likely related to #42. Try adding --parameter-overrides Stage=dev to your aws cloudformation deploy command and see if you get the same error.

arun-gupta commented 4 years ago

That works like a charm, will close the issue.