July 2017
Intermediate to advanced
402 pages
9h 38m
English
The last time we worked on EC2 was in Chapter 5, Scaling Your Infrastructure, when we implemented the Auto Scaling groups. We are going to edit the troposphere script we used for this and make the necessary changes.
Go to your template directory and with your text editor, open the file nodeserver-cf-template.pyfrom our EffectiveDevOpsTemplates repository.
Previously, we created a policy to allow access to S3, which we needed for CodeDeploy. We will add a second policy and grant access to CloudWatch, CloudWatch logs, and CloudWatch events. After the creation of the IAM policy AllowS3, add the following resource:
t.add_resource(IAMPolicy( "MonitoringPolicy", PolicyName="AllowSendingDataForMonitoring", PolicyDocument=Policy( ...
Read now
Unlock full access