AWS EC2 Automation

2 min read

Cover Image for AWS EC2 Automation

Instance Types:

Amazon EC2 has a large number of instance types that are optimized for different uses. The different combinations of CPU, memory, storage, and networking capacity in instance types give you the freedom to choose the right mix of resources for your apps. Each instance type comes with one or more instance sizes, so you can adjust your resources to meet the needs of the workload you want to run.

AMI:

An Amazon Machine Image (AMI) is an image that AWS supports and keeps up to date. It contains the information needed to start an instance. When you launch an instance, you must choose an AMI. When you need multiple instances with the same configuration, you can launch them from a single AMI.

Task 1:

  1. Create a launch template with Amazon Linux 2 AMI and t2.micro instance type with Jenkins and Docker setup (You can use the Day 39 User data script for installing the required tools.

  2. Click on "Create a template" and set the required fields.

  3. set user data with the commands which need to run in the machine.

  4. Click on "Create Launch template"

  5. go to instances and click on "launch instance from template"

  6. you can see instances were up and running with the launch templates.

for setting up the auto-scaling group we can head over to the load balancer and set up the required fields.

happy learning!!