An immutable machine is a deployment pattern that bundles the runtime, required libraries, and application code into an Amazon Machine Image (AMI). Deployments launch new EC2 instances from the new image and terminate the old instances instead of modifying machines in place. section 16.3.4
A typical immutable-machine deployment follows this sequence:
- Build an AMI containing the application and its runtime, using Packer. section 16.3.4
- For a new application version, create another image, launch replacement instances, and terminate the old instances. section 16.3.4
Imagery deployment
The Imagery application packages separate server and worker components into shared AMIs. CloudFormation creates the surrounding infrastructure, while launch templates use the selected AMI for an Auto Scaling deployment. section 16.3.4
