Creating the new CloudFormation stack for production

Here, we are going to reuse the exact same template as we used for staging. In your Terminal, go to the location you used to generate the node server template and then run the same command as before, but this time with the stack name helloworld-production:

$ aws cloudformation create-stack \    --capabilities CAPABILITY_IAM \    --stack-name helloworld-production \    --template-body file://nodeserver.template \    --parameters ParameterKey=KeyPair,ParameterValue=EffectiveDevOpsAWS

We can then run the following command to wait for the stack to be ready:

$ aws cloudformation wait stack-create-complete \    --stack-name helloworld-production
You might realize the weakness of our production stack with only ...

Get Effective DevOps with AWS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.