Hands-on Lab

#Lab: Cloud Deployment

Deploy a simple application to a cloud provider.

#🎯 Objectives

  • Create a cloud VM instance
  • Configure security groups
  • Deploy a web application

#Option 1: AWS Free Tier

bash
1# Launch EC2 instance
2aws ec2 run-instances \
3  --image-id ami-0c55b159cbfafe1f0 \
4  --instance-type t2.micro \
5  --key-name mykey \
6  --security-groups web-sg
7
8# Install nginx
9ssh ec2-user@<ip>
10sudo yum install nginx -y
11sudo systemctl start nginx

#Option 2: Digital Ocean

bash
1doctl compute droplet create myapp \
2  --size s-1vcpu-1gb \
3  --image ubuntu-22-04-x64 \
4  --region nyc1

#✅ Success Criteria

  • VM is running
  • Can access via SSH
  • Web server responds