AcademySky-High Systems: The AWS OdysseySector 3: The Engine Room (EC2)

Module 3: EC2 & Compute Fundamentals

Welcome to the heart of AWS! EC2 (Elastic Compute Cloud) is where you rent virtual servers.

The Mission

Your goal is to launch a virtual server (Instance) that is ready to host a website.

Step 1: Security First

In AWS, instances are locked down by default. We need a Key Pair to log in later. Run: aws ec2 create-key-pair --key-name my-key

Step 2: The Virtual Firewall

A Security Group acts as a virtual firewall. Let's create one for our web server. Run: aws ec2 create-security-group --group-name web-sg --description "web server sg"

Step 3: Ignition!

Now, let's launch the server using an AMI (Amazon Machine Image). Run: aws ec2 run-instances --image-id ami-df5de720 --count 1 --instance-type t2.micro --key-name my-key --security-groups web-sg

booting...

Mission Control

Create an EC2 Key Pair

Expected Command

aws ec2 create-key-pair --key-name my-key

Create a Security Group

Launch the Instance