Creating our production ECS cluster

Thanks to the upfront work we did with our CloudFormation templates, adding a new environment will be trivial. We will start by launching a production ECS cluster:

$ aws cloudformation create-stack \    --stack-name production-cluster \    --capabilities CAPABILITY_IAM \    --template-body file://ecs-cluster-cf.template \    --parameters \           ParameterKey=KeyPair,ParameterValue=EffectiveDevOpsAWS \       ParameterKey=VpcId,ParameterValue=vpc-4cddce2a \       ParameterKey=PublicSubnet,ParameterValue=subnet-      e67190bc\\,subnet-658b6149\\,subnet-d890d3e4\\,subnet-      6fdd7927\\,subnet-4c99c229\\,subnet-b03baebc{    "StackId": "arn:aws:cloudformation:us-east-     1:094507990803:stack/production-cluster/1e1a87f0-b2da-11e8-8fd2- 503aca4a58d1" ...

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.