Now that our AMI Builder Pipeline is built, we can now work on the final automation stage with Systems Manager.
In this section we will orchestrate the build of a newly patched AMI and its associated deployment into our application cluster.
To automate this activities we will leverage AWS Systems Manager Automation Document .
Using our SSM Automation document we will execute the following activities:
Using this approach, we streamline the creation of our AMI, and at the same time minimize interruption to applications within the environment.
Additionally, by leveraging the automation built in Cloudformation through autoscaling update policy, we reduce the complexity associated with building out a blue/green deployment structure manually. Lets look at how this works in detail:
For details about how this is implemented in the CloudFormation template, please review the
pattern3-application.yml template deployed in section 2.
Once we complete this section our architecture will reflect the following diagram:
In this section you have the option to build the resources manually using AWS console. If however you are keen to complete the lab quickly, you can simply deploy from the CloudFormation template and take a look at the deployed architecture. Select the appropriate section:
END OF SECTION 4 END OF LAB