Question: AWS EC 2 Assignment 2 Objective The objective of this assignment is to get hands - on experience with launching, managing, and terminating EC 2

AWS EC2 Assignment 2
Objective
The objective of this assignment is to get hands-on
experience with launching, managing, and terminating EC2 instances using both
Amazon Linux AMI and Windows AMI. Naming instances and keys work around your
name and your student ID
Prerequisites
AWS
account
Basic
knowledge of AWS Management Console
SSH
client (for connecting to Linux instances)
Remote
Desktop Client (for connecting to Windows instances)
Part 1: Launch an Amazon Linux EC2 Instance
Step 1: Launch Instance
Log
in to AWS Management Console.
Navigate
to EC2 Dashboard.
Launch
Instance:
Click
on the "Launch Instance" button.
Choose
an Amazon Machine Image (AMI): Select the Amazon Linux 2 AMI.
Choose
an Instance Type: Select t2.micro (eligible for the free tier).
Configure
Instance Details: Use the default settings.
Add
Storage: Use the default settings.
Add
Tags: Add a Name tag with the value "LinuxInstance".
Configure
Security Group: Create a new security group with the following rules:
Allow
SSH (port 22) from your IP address.
Review
and Launch: Review your settings and click "Launch". Create a
new key pair, download the .pem file, and then click "Launch
Instances".
Step 2: Connect to the Instance
Locate
Your Instance: Go to the EC2 dashboard and find your running instance.
Connect
to Your Instance:
Open
a terminal on your computer.
Change
the permissions of your key pair file:
bash
Copy
code
chmod
400/path/to/your-key-pair.pem
Connect
to your instance using SSH:
bash
Copy
code
ssh
-i /path/to/your-key-pair.pem ec2-user@your-instance-public-dns
Step 3: Perform Basic Operations
Update
the Instance:
bash
Copy
code
sudo
yum update -y
Install
a Web Server:
bash
Copy
code
sudo
yum install httpd -y
sudo
systemctl start httpd
sudo
systemctl enable httpd
Verify
the Web Server:
Open
a web browser and enter the public DNS of your instance. You should see
the Apache test page.
Part 2: Launch a Windows EC2 Instance
Step 1: Launch Instance
Log
in to AWS Management Console.
Navigate
to EC2 Dashboard.
Launch
Instance:
Click
on the "Launch Instance" button.
Choose
an Amazon Machine Image (AMI): Select a Windows Server AMI (e.g., Windows
Server 2019 Base).
Choose
an Instance Type: Select t2.micro (eligible for the free tier).
Configure
Instance Details: Use the default settings.
Add
Storage: Use the default settings.
Add
Tags: Add a Name tag with the value "WindowsInstance".
Configure
Security Group: Create a new security group with the following rules:
Allow
RDP (port 3389) from your IP address.
Review
and Launch: Review your settings and click "Launch". Create a
new key pair, download the .pem file, and then click "Launch
Instances".
Step 2: Connect to the Instance
Locate
Your Instance: Go to the EC2 dashboard and find your running instance.
Retrieve
the Windows Administrator Password:
Select
your instance and click on the "Connect" button.
Choose
"RDP client" and click on "Get Password".
Upload
your key pair file (.pem) to decrypt the password.
Connect
to Your Instance:
Open
Remote Desktop Connection on your computer.
Enter
the public DNS of your instance.
Use
the decrypted password to log in.
Step 3: Perform Basic Operations
Verify
the Connection:
Once
logged in, open the Start menu and verify that you can navigate the
Windows interface.
Part 3: Terminate the Instances
Terminate
the Linux Instance:
Go
to the EC2 dashboard.
Select
the Linux instance.
Click
on the "Actions" button, choose "Instance State," and
then select "Terminate".
Terminate
the Windows Instance:
Go
to the EC2 dashboard.
Select
the Windows instance.
Click
on the "Actions" button, choose "Instance State," and
then select "Terminate".
Submission
Submit
a report detailing the steps you followed along with screenshots for each
major step.
Include
a brief summary of any issues you encountered and how you resolved them.
AWS S3 &EC2 and volume assignments
EBS (Elastic Block Store) volumes. This will give students
hands-on experience with these services and how they can be used together.
AWS S3, EC2, and EBS Volume Assignment
Objective
The objective of this assignment is to understand the basic
operations of AWS S3, EC2, and EBS volumes and how to use these services
together.
Prerequisites
AWS
account
Basic
knowledge of AWS Management Con

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!