๐งช Lab 1: Cloud Architecture Fundamentals (AWS)
Course: CompTIA Cloud+ CV0-004
Objective: Understand how to create and configure basic cloud infrastructure using AWS Free Tier.
๐ฏ Goals
- Create a VPC and subnet
- Attach an Internet Gateway
- Launch a virtual machine (EC2)
- Connect to the instance via SSH
๐ Part 1: Register for AWS Free Tier
Can use this as reference on how to signup: https://www.geeksforgeeks.org/amazon-web-services-aws-free-tier-account-set-up/
- Go to https://aws.amazon.com/free
- Click Create a Free Account
- Follow the signup instructions:
- Email and password
- Billing info (credit/debit card)
- Identity verification
- Select the Free Basic Support Plan
- Log in to https://console.aws.amazon.com
โ
Checkpoint: You should now be on the AWS Management Console.
๐ Part 2: Create a VPC with Public Subnet
- Navigate to VPC service โ "Your VPCs" โ Create VPC
- Name:
cloudplus-vpc
- IPv4 CIDR:
10.0.0.0/16
-
Leave rest as default โ Create
-
Go to Subnets โ Create Subnet
- Name:
public-subnet
- VPC:
cloudplus-vpc
- AZ: e.g.,
us-east-1a
-
CIDR: 10.0.1.0/24
-
Go to Internet Gateways โ Create:
- Name:
cloudplus-igw
-
Attach to: cloudplus-vpc
-
Edit Route Table:
- Use default Route Table attached to VPC
- Add route:
0.0.0.0/0 โ cloudplus-igw
- Associate with
public-subnet
โ
Checkpoint: You have a VPC with internet access via a public subnet.
๐ฅ๏ธ Part 3: Launch EC2 Instance
- Go to EC2 Dashboard โ Launch Instance
- Name:
cloudplus-ec2
- AMI: Amazon Linux 2023
- Type:
t2.micro (Free Tier)
- Key Pair: Create new โ
cloudplus-key โ Download .pem
- Network:
cloudplus-vpc, Subnet: public-subnet
- Auto-assign Public IP: Yes
-
Firewall: Allow SSH (port 22)
-
Launch Instance
โ
Checkpoint: Your instance is running with a public IP.
๐ Part 4: Connect to EC2
- Open terminal and run:
chmod 400 cloudplus-key.pem
ssh -i "cloudplus-key.pem" ec2-user@<your-public-ip>
๐งน Part 5 (Optional): Clean Up Resources
To avoid unnecessary charges from AWS, you should terminate any running resources after the lab.
โ
Terminate EC2 Instance
- Go to the EC2 Dashboard
- Select your instance (
cloudplus-ec2)
- Click Instance state โ Terminate instance
- Confirm the termination
โ
Checkpoint: Your instance should now show a status of "shutting down" and will soon be removed.
โ
Lab Complete
Youโve successfully:
- Set up your first cloud infrastructure
- Created and configured a VPC, subnet, and internet gateway
- Launched and connected to a cloud-hosted virtual machine (EC2)
- Practiced fundamental cloud networking and security setup
- (Optionally) Cleaned up cloud resources to avoid unnecessary charges
๐ง Knowledge Check (Optional)
Before moving on, ask yourself:
- Can I explain the purpose of a VPC and subnet?
- Do I understand what an internet gateway does?
- Can I SSH into an EC2 instance securely?
- Do I know how to terminate resources I no longer need?
๐ Additional Resources
๐ Recommended Next Steps
- Proceed to Lab 2: Cloud Deployment Strategies (Blue/Green)
- Explore more about IAM roles and security groups
- Try launching a RHEL instance instead of Amazon Linux
Happy Cloud Learning! โ๏ธ๐