AWS EC2 and AMI Training
Amazon Machine Images (AMIs)
- Definition: AMI stands for Amazon Machine Image. The template provides the information required to launch an EC2 instance, including the OS, application server, applications, and other configurations.
- Customization: Users can use pre-built AMIs provided by AWS or create customized AMIs.
- Benefits of Custom AMIs:
- Faster boot and configuration times as the software is pre-installed.
- Custom software and configurations tailored to specific needs.
Types of AMIs
- Public AMIs: Provided by AWS, e.g., Amazon Linux 2 AMI.
- Your AMIs: Custom AMIs created and maintained by the user.
- AWS Marketplace AMIs: Created and potentially sold by third-party vendors on AWS Marketplace.
AMI Creation Process
- Launch an EC2 Instance: Start with a base EC2 instance and customize it as needed.
- Stop the Instance: Ensure data integrity before creating an AMI.
- Create AMI: This process creates an AMI from the instance, including EBS snapshots.
- Launch New Instances: Use the newly created AMI to launch other instances in different regions or availability zones.
Example Scenario: Copying an Instance Across Regions
- US-EAST-1A: Launch and customize an EC2 instance.
- Create Custom AMI: From the instance in US-EAST-1A.
- US-EAST-1B: Launch a new instance using the custom AMI created in US-EAST-1A, effectively cloning the original instance.

Next Steps