Back
1
☁️ Practical 1: Introduction to Cloud Platforms
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:
- Log In: Access the AWS Management Console.
- Navigate to EC2: Search for EC2 in the top search bar and open the dashboard.
- Initiate Launch: Click Launch instance.
- Choose OS: Select an Amazon Linux AMI.
- Configure Network: In the Network settings, ensure you allow HTTP and SSH traffic from anywhere (
0.0.0.0/0). - Add Setup Script: Under Advanced Details, paste a user data script to install Apache (
httpd). - Launch: Click Launch instance and wait for the instance state to become
Running. - 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