Day 9 Of Cloud with AWS: Launching an EC2 Instance
#100DaysOfCloud challenge using AWS #100DaysOfCloud challenge using AWS
In today's task:
Launch an EC2 Instance with the following specifications:
| Setting | Value |
|---|
| Instance Name | devops-ec2 |
|---|
| AMI | Amazon Linux |
|---|
| Instance Type | t2.micro |
|---|
| Key Pair | devops-kp |
|---|
| Security Group | Default security group |
|---|
Step 1: Open the EC2 Dashboard
- Log in to the AWS Management Console.
- Search for EC2 in the AWS services search bar.
- Open the EC2 Dashboard.
Step 2: Start Launching an Instance
- Click Launch Instance.
- Under the Name and tags section, enter:
1
devops-ec2Step 3: Select Amazon Linux AMI
Under the Application and OS Images (Amazon Machine Image) section:
- Choose Amazon Linux.
- Select the latest available Amazon Linux AMI.
Example:
- Amazon Linux 2023 AMI
Step 4: Choose Instance Type
Under the Instance type section:
- Select:
1
t2.microThis instance type is eligible for the AWS Free Tier and is commonly used for lightweight workloads and testing environments.
Step 5: Create a New RSA Key Pair
Under the Key pair (login) section:
- Click Create new key pair.
- Configure the following:
| Setting | Value |
|---|---|
| Key pair name | devops-kp |
| Key pair type | RSA |
| Private key file format | .pem |
- Click Create key pair.
The private key file will automatically download to your local machine. Store it securely because it is required for SSH access.
Step 6: Configure Network Settings
Under the Network settings section:
- Keep the default VPC settings.
- Under Security group, select:
1
Select existing security group- Choose the default security group available in the VPC.
The default security group typically allows internal communication between resources within the same group.
Step 7: Review and Launch
- Verify all configuration details.
- Click Launch instance.
AWS will begin provisioning the EC2 instance.
Step 8: Verify the Instance
After deployment:
- Navigate to Instances in the EC2 dashboard.
- Confirm:
- Instance name is
devops-ec2 - Instance type is
t2.micro - Key pair is
devops-kp - Security group is
default - Instance state is
Running
- Instance name is
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article