Creating the CloudFormation template

In order to keep our code fairly similar to the code we looked at in Chapter 3, Treating Your Infrastructure as Code, we are going to start off with the helloworld Troposphere code that we created in that chapter. First, we are going to duplicate the Python script. Go to your EffectiveDevOpsTemplates directory, where you have your Troposphere templates, and then clone the ansiblebase-cf-template.py file as follows:

$ cp ansiblebase-cf-template.py jenkins-cf-template.py  

The Jenkins host will need to interact with AWS. To allow this, we will create an instance profile, which we will describe in more detail later, taking advantage of another library that is developed by the same authors as Troposphere. We ...

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.