I will provide the list of experiments , give me each and every step to implement the experiment
Assistant
Absolutely! Please go ahead and share the list of experiments. Once I have them, I’ll break down each experiment intoclear, step-by-step instructionsso you can implement them easily.
User
Exp 3: Create and configure storage services using Amazon EBS
Task 1: Launch an Ec2 Instance check the volume and modify the size of volume
Task 2: Create a new Volume in the same availability zone and attach it to EC2 instance
-- Mount the new volume and
-- Create a file (with your rollno.txt)
Task 3: Detach the new Volume from the EC2 Instance and try to attach it to a new EC2 Instance as well as check the files are present
Task 4: Create a snapshot, copy it across regions, and attach the new volume to an EC2 instance in the new region.
Assistant
Great! Here's a detailed step-by-step guide forExperiment 3: Create and configure storage services using Amazon EBS, with all tasks explained clearly.
✅Task 1: Launch an EC2 Instance, check the volume, and modify the size of volume
Step 1: Launch EC2 Instance
Log in to theAWS Console.
Go toEC2 Dashboard→ Click onLaunch Instance.
Configure:Name: e.g.,EBS-Experiment-InstanceAmazon Machine Image (AMI): Choose Amazon Linux 2Instance Type: t2.micro (Free Tier)Key Pair: Select or create one (you’ll need it to SSH later)Network settings: Allow SSH (port 22)Storage: Default EBS volume is shown (e.g., 8 GiB)
Name: e.g.,EBS-Experiment-Instance
Amazon Machine Image (AMI): Choose Amazon Linux 2
Instance Type: t2.micro (Free Tier)
Key Pair: Select or create one (you’ll need it to SSH later)
Network settings: Allow SSH (port 22)
Storage: Default EBS volume is shown (e.g., 8 GiB)
ClickLaunch Instance
Log in to theAWS Console.
Go toEC2 Dashboard→ Click onLaunch Instance.
Configure:
Name: e.g.,EBS-Experiment-Instance
Amazon Machine Image (AMI): Choose Amazon Linux 2
Instance Type: t2.micro (Free Tier)
Key Pair: Select or create one (you’ll need it to SSH later)
Network settings: Allow SSH (port 22)
Storage: Default EBS volume is shown (e.g., 8 GiB)
Name: e.g.,EBS-Experiment-Instance
Amazon Machine Image (AMI): Choose Amazon Linux 2
Instance Type: t2.micro (Free Tier)
Key Pair: Select or create one (you’ll need it to SSH later)
Network settings: Allow SSH (port 22)
Storage: Default EBS volume is shown (e.g., 8 GiB)
ClickLaunch Instance
Step 2: Check Attached Volume
Go toEC2 Dashboard > Instances
Select your instance → Scroll down toStoragesection
You’ll see the default EBS volume attached (/dev/xvda)
Go toEC2 Dashboard > Instances
Select your instance → Scroll down toStoragesection
You’ll see the default EBS volume attached (/dev/xvda)
Step 3: Modify Volume Size
Go toEC2 > Volumes
Select the volume → ClickActions > Modify Volume
Change the size (e.g., from 8 GiB to 12 GiB)
ClickModify, thenYes
Go toEC2 > Volumes
Select the volume → ClickActions > Modify Volume
Change the size (e.g., from 8 GiB to 12 GiB)
ClickModify, thenYes
OPTIONAL: Resize filesystem on EC2
SSH into the EC2 instance:
User
Exp 4: Amazon Elastic File System
Task 1: Create Two Security Groups
--- One for EC2
--- One for EFS
Task 2: Launch One EC2 Instance and Mount EFS
Task 3: Create a directory and a file with your rollno under the directory
Task 4: Launch One more EC2 and mount the same EFS
Task 5: Access the Directory and File created from the First EC2 Instance
Assistant
Perfect! Here’s acomplete step-by-step guideforExperiment 4: Amazon Elastic File System (EFS)with all tasks covered clearly and practically.
✅Task 1: Create Two Security Groups
We’ll create:
SG1:For EC2 instances
SG2:For EFS (NFS access)
SG1:For EC2 instances
SG2:For EFS (NFS access)
Step 1.1: Create Security Group for EC2
Go toEC2 Dashboard > Security Groups > Create security group
Task 1: Creation of VPC
Task 2: Create Two Subnets (Public and Private)
Task 3: Launch 2 EC2 Instances one in Public subnet and One in Private subnet
Task 4: Create Internet Gateway
Task 5: Create Route Tables and associate IGW
Task 6: Access EC2 Launched in Private Subnet Via EC2 Launched in Public Subnet
Assistant
Awesome! Here's astep-by-step guideforExperiment 5: Amazon Virtual Private Cloud (VPC)with all 6 tasks explained in detail.
✅Task 1: Create a VPC
Step 1.1: Go to VPC Dashboard
Open AWS Console → Navigate toVPC Dashboard
ClickCreate VPC
SelectVPC Only (Manual Setup)
Configure:Name tag:MyVPCIPv4 CIDR block:/16Leave others as default
Name tag:MyVPC
IPv4 CIDR block:/16
Leave others as default
ClickCreate VPC
Open AWS Console → Navigate toVPC Dashboard
ClickCreate VPC
SelectVPC Only (Manual Setup)
Configure:
Name tag:MyVPC
IPv4 CIDR block:/16
Leave others as default
Name tag:MyVPC
IPv4 CIDR block:/16
Leave others as default
ClickCreate VPC
✅Task 2: Create Two Subnets (Public and Private)
Step 2.1: Create Public Subnet
Go toSubnets> ClickCreate Subnet
VPC: SelectMyVPC
Name:Public-Subnet
Availability Zone: Pick one
CIDR block:/24
ClickCreate Subnet
Go toSubnets> ClickCreate Subnet
VPC: SelectMyVPC
Name:Public-Subnet
Availability Zone: Pick one
CIDR block:/24
ClickCreate Subnet
Step 2.2: Create Private Subnet
ClickCreate Subnetagain
Name:Private-Subnet
VPC:MyVPC
Availability Zone: Same or different
CIDR block:/24
ClickCreate Subnet
ClickCreate Subnetagain
Name:Private-Subnet
VPC:MyVPC
Availability Zone: Same or different
CIDR block:/24
ClickCreate Subnet
✅Task 3: Launch 2 EC2 Instances in Public and Private Subnets
Step 3.1: Launch Public EC2 Instance
Go toEC2 > Launch Instance
Name:Public-EC2
Choose AMI: Amazon Linux 2
Instance Type: t2.micro
Key Pair: Select one
Network Settings:VPC:MyVPCSubnet:Public-SubnetAuto-assign public IP:EnableSecurity Group: CreatePublicSGallowing SSH (port 22) from your IP
VPC:MyVPC
Subnet:Public-Subnet
Auto-assign public IP:Enable
Security Group: CreatePublicSGallowing SSH (port 22) from your IP
Launch the instance
Go toEC2 > Launch Instance
Name:Public-EC2
User
Exp 6: Amazon VPC NAT Gateway
Task 1: Create VPC
Task 2: Create Two Subnets (Public and Private)
Task 3: Launch 2 EC2 Instances one in public subnet and one in Private subnet
Task 4: Create Internet Gateway
Task 5: Create Route Tables and associate IGW
Task 6: Create NAT Gateway
Task 7: Access Internet from EC2 Launched in Private Subnet
Assistant
Awesome! Here's adetailed step-by-step guideforExperiment 6: Amazon VPC with allow private EC2 instances to access the internet.
✅Task 1: Create a VPC
Go toVPC Dashboard > Create VPC
SelectVPC only
Configuration:Name:MyNATVPCIPv4 CIDR:/16
Name:MyNATVPC
IPv4 CIDR:/16
ClickCreate VPC
Go toVPC Dashboard > Create VPC
SelectVPC only
Configuration:
Name:MyNATVPC
IPv4 CIDR:/16
Name:MyNATVPC
IPv4 CIDR:/16
ClickCreate VPC
✅Task 2: Create Two Subnets (Public and Private)
Step 2.1: Public Subnet
Go toSubnets > Create Subnet
Name:Public-Subnet
VPC:MyNATVPC
AZ: e.g.,us-east-1a
CIDR block:/24
Create
Go toSubnets > Create Subnet
Name:Public-Subnet
VPC:MyNATVPC
AZ: e.g.,us-east-1a
CIDR block:/24
Create
Step 2.2: Private Subnet
Name:Private-Subnet
VPC:MyNATVPC
AZ: Same as above
CIDR block:/24
Create
Name:Private-Subnet
VPC:MyNATVPC
AZ: Same as above
CIDR block:/24
Create
✅Task 3: Launch Two EC2 Instances
Step 3.1: Public EC2
Go toEC2 > Launch Instance
Name:Public-EC2
AMI: Amazon Linux 2
Instance Type:t2.micro
Key Pair: Use existing or create
Network settings:VPC:MyNATVPCSubnet:Public-SubnetAuto-assign public IP:EnableSecurity Group: Allow SSH (port 22)
VPC:MyNATVPC
Subnet:Public-Subnet
Auto-assign public IP:Enable
Security Group: Allow SSH (port 22)
Launch
Go toEC2 > Launch Instance
Name:Public-EC2
AMI: Amazon Linux 2
Instance Type:t2.micro
Key Pair: Use existing or create
Network settings:
VPC:MyNATVPC
Subnet:Public-Subnet
Auto-assign public IP:Enable
Security Group: Allow SSH (port 22)
VPC:MyNATVPC
Subnet:Public-Subnet
Auto-assign public IP:Enable
Security Group: Allow SSH (port 22)
Launch
Step 3.2: Private EC2
Launch another instance
User
Exp 7: Create your First AWS S3 Bucket and Upload Content to Bucket and Manage their Access and Create Static Website using AWS S3
Fill:Name:S3UploadHandlerRuntime:Python 3.9(or any supported version)
Name:S3UploadHandler
Runtime:Python 3.9(or any supported version)
ClickCreate function
Go to > Create function
ChooseAuthor from scratch
Fill:
Name:S3UploadHandler
Runtime:Python 3.9(or any supported version)
Name:S3UploadHandler
Runtime:Python 3.9(or any supported version)
ClickCreate function
Step 1.2: Add Code from Template
Open the Lambda function
Scroll toCode Source
Replace the default code with the content from:tinyurl.com/kmitdemocode
tinyurl.com/kmitdemocode
ClickDeploy
Open the Lambda function
Scroll toCode Source
Replace the default code with the content from:
tinyurl.com/kmitdemocode
tinyurl.com/kmitdemocode
ClickDeploy
Step 1.3: Add Permissions to Lambda
In theConfigurationtab →Permissions
Click the Role name (IAM role)
Attach the following policies:AmazonS3ReadOnlyAccessAmazonDynamoDBFullAccess
AmazonS3ReadOnlyAccess
AmazonDynamoDBFullAccess
In theConfigurationtab →Permissions
Click the Role name (IAM role)
Attach the following policies:
AmazonS3ReadOnlyAccess
AmazonDynamoDBFullAccess
AmazonS3ReadOnlyAccess
AmazonDynamoDBFullAccess
✅Task 2: Configure S3 to Trigger Lambda
Step 2.1: Go to S3 Bucket
Open your S3 bucket
Go toProperties> Scroll toEvent notifications
ClickCreate event notification
Open your S3 bucket
Go toProperties> Scroll toEvent notifications
ClickCreate event notification
Step 2.2: Fill Details
Name:S3LambdaTrigger
Event type:PUT
Prefix/Suffix: (optional, e.g., only.jpgor.txt)
User
Exp 1: Working with EC2 Instance.
Task 1: Launch an EC2 Instance using Ubuntu OS Connect to the Instance using SSH and connecting it with ec2 direct connect
Task 2: Install Nginx Server on Ec2 Instance to the Nginx webpage using PublicIP
Task 3: Launch a New Instance using Amazon Linux Connect to the Instance using Putty
Task 4: Launch an Ec2 Instance using Windows OS Connect to the Instance using RDP
Assistant
Here’s acomplete step-by-step guideforExperiment 1: Working with EC2 Instances– coveringUbuntu, Amazon Linux, and Windows instances, along withNginx installationand different connection methods.
✅Task 1: Launch Ubuntu EC2 and via SSH
Step 1.1: Launch Ubuntu EC2
Go toEC2 Dashboard > Instances > Launch Instance
Name:Ubuntu-EC2
AMI: ChooseUbuntu Server 22.04 LTS
Instance Type:t2.micro
Key Pair: Select or create one
Network settings:Allow SSH (port 22)
Allow SSH (port 22)
ClickLaunch Instance
Go toEC2 Dashboard > Instances > Launch Instance
Name:Ubuntu-EC2
AMI: ChooseUbuntu Server 22.04 LTS
Instance Type:t2.micro
Key Pair: Select or create one
Network settings:
Allow SSH (port 22)
Allow SSH (port 22)
ClickLaunch Instance
Step 1.2: using SSH
Open terminal (Mac/Linux) or PowerShell (Windows with WSL)
Use this command:
Open terminal (Mac/Linux) or PowerShell (Windows with WSL)
Load your.pemfile → ClickSave private key→ Save as.ppk
User
Exp 2: Deploy a front-end application using Docker.
Task 1: Install on an EC2 instance.
Task 2: Clone the front-end application, write the build the image.
Use : tinyurl.com/demokmit3
Task 3: Create a Docker container with a front-end application.
Task 4: Configure security groups to allow web traffic.
Assistant
Here’s astep-by-step guideforExperiment 2: Deploy a Front-End Application using Dockeron an EC2 instance.
✅Task 1: Install on an EC2 Instance
Step 1.1: Launch an EC2 Instance
Go toEC2 Dashboard > Launch Instance
Name:Docker-Frontend
AMI:Amazon Linux 2orUbuntu
Instance type:t2.micro
AllowSSH (port 22)andHTTP (port 80)in the Security Group
Launch instance and connect via SSH
Go toEC2 Dashboard > Launch Instance
Name:Docker-Frontend
AMI:Amazon Linux 2orUbuntu
Instance type:t2.micro
AllowSSH (port 22)andHTTP (port 80)in the Security Group