Adding the CloudFormation template to our code base

ECS changes are driven by the task definition present in our helloworld-ecs-service- cf.template file. So far we have only stored our Python script in GitHub. We will have to make a special case for that template and store the JSON output of it so that CodePipeline can interact with our stack. We will add this file to our Git repository in a new directory as follows:

$ cd helloworld$ mkdir templates$ curl -L https://raw.githubusercontent.com/yogeshraheja/EffectiveDevOpsTemplates/master/helloworld-ecs-service-cf-template.py | python > templates/helloworld-ecs-service-cf.template$ git add templates$ git commit -m "Adding CloudFormation template for the helloworld task"$ git push

Now that ...

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.