☁️ Practical 1: Introduction to Cloud Platforms

AWS Linux

Objective: Familiarize students with cloud platforms and their interfaces.

🖥️ Method 1: Console / GUI Guide (AWS Management Console)

If you prefer to provision infrastructure manually via the Management Console, follow these steps:

  1. Log In: Access the AWS Management Console.
  2. Navigate to EC2: Search for EC2 in the top search bar and open the dashboard.
  3. Initiate Launch: Click Launch instance.
  4. Choose OS: Select an Amazon Linux AMI.
  5. Configure Network: In the Network settings, ensure you allow HTTP and SSH traffic from anywhere (0.0.0.0/0).
  6. Add Setup Script: Under Advanced Details, paste a user data script to install Apache (httpd).
  7. Launch: Click Launch instance and wait for the instance state to become Running.
  8. Verify: Copy the Public IPv4 address and paste it into your browser to view the cloud explorer web server.

🚀 Method 2: Automated Script Guide

For rapid, reproducible deployments, use the provided bash scripts.

🔍 Script Analysis

Script Name Action Performed
1explorerdeploy.sh 🟢 Deploys an Amazon Linux 2023 EC2 instance, creates a Security Group allowing HTTP and SSH, and injects a User Data script to install Apache and host a simple Cloud Explorer Web UI.
1explorercleanup.sh 🔴 Terminates the provisioned EC2 instance and safely deletes the security group created by the deploy script.

🛠️ Usage Instructions

Prerequisites:

  • AWS CLI installed and configured with active credentials.

Execute the following commands from the root directory:

# 1. Navigate to scripts folder
cd scripts/

# 2. Provide execution permission
chmod +x 1_explorer_deploy.sh 1_explorer_cleanup.sh

# 3. Deploy foundational cloud web server
./1_explorer_deploy.sh     

# 4. Tear down resources when finished
./1_explorer_cleanup.sh