July 2017
Intermediate to advanced
402 pages
9h 38m
English
Now we have our Ansible playbook ready, we are going to create our CloudFormation template using troposphere.
We are going to start by duplicating the troposphere script we created for Jenkins earlier in the chapter:
$ cd EffectiveDevOpsTemplates$ cp jenkins-cf-template.py nodeserver-cf-template.py
We are going to edit the file nodeserver-cf-template.py and make the following changes:
We will first change the Application name and port by updating the variables as follows:
ApplicationName = "nodeserver" ApplicationPort = "3000"
In addition, our instances will need to download files from S3. In order to allow for that to happen, we will replace the policy that allowed CodePipeline on our Jenkins ...
Read now
Unlock full access