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 ...