Launching our web server

As before, we are going to launch our instance using CloudFormation. Note that we are calling this first stack helloworld-staging. We will first look at CodeDeploy as a way to deploy our code to a staging environment. We will use this name in CodeDeploy so that we can target the deployments to that specific stack:

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

In a few minutes, our instance will be ready.

We are now at an important point in our DevOps transformation. We have now created generic nodejs web servers that allow you to deploy code on ...

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.