Hands-on Lab
Throughout this chapter, you have learned about the theory of EC2 instances and ECS/EKS clusters. You can now practice creating these in our AWS account, starting with EC2.
EC2 Lab
The objective of this hands-on lab is to provide you with practical experience in deploying and managing EC2 instances and creating an ASG to ensure high availability and scalability:
- Log in to the AWS Management Console.
- Navigate to the
EC2
dashboard. Click onLaunch Instance
to begin the instance creation process. - Choose the latest Amazon Linux AMI (at the time of writing, this was Amazon Linux 2023). Feel free to launch other AMIs, but they may not be covered under the Free tier, so remember to delete them when done.
- Select an instance type based on your requirements. If you choose
t2.micro
, you generally will be covered under the Free tier. - Create a new key pair and store the key safely. If you are using a Mac or a Linux-based computer, then save the...