0% found this document useful (0 votes)
3 views17 pages

AWS CloudShell and EC2 Setup Guide

The document outlines a series of steps for using AWS CloudShell, AWS Cloud9 IDE, and creating an EC2 instance within Amazon Web Services. It details the commands for managing files and directories in CloudShell, creating a Virtual Private Cloud (VPC), and launching and terminating an EC2 instance. Additionally, it notes that using AWS Cloud9 is more costly compared to CloudShell and provides instructions for connecting to and managing EC2 instances.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views17 pages

AWS CloudShell and EC2 Setup Guide

The document outlines a series of steps for using AWS CloudShell, AWS Cloud9 IDE, and creating an EC2 instance within Amazon Web Services. It details the commands for managing files and directories in CloudShell, creating a Virtual Private Cloud (VPC), and launching and terminating an EC2 instance. Additionally, it notes that using AWS Cloud9 is more costly compared to CloudShell and provides instructions for connecting to and managing EC2 instances.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1BI22CS011 (AISHWARYA A) Cloud Computing Lab

PROGRAM 1: Exploring AWS CloudShell and the AWS Cloud9 IDE

AWS CloudShell : AWS CloudShell is a browser-based shell that provides a command-line


interface (CLI) to interact with Amazon Web Services (AWS) resources. It's designed to allow you to
manage your AWS resources directly from a web browser, without needing to install or configure
anything on your local machine.
Steps involved in setup and use of AWS CloudShell is as follows :

Step 1: Login to AWS Account

Step 2: Open CloudShell

Dept. of CSE, BIT 2024-2025 1


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 3: Execute shell commands in the terminal


1. pwd: Present working directory
2. echo “text”: Displays text or variables on the terminal screen
3. mkdir : Make a directory
4. cd : to Change directory
5. cd .. : To get back to previous directory
6. ls: lists files and directories in the current directory or any other directory on the system.
7. touch: used to create empty files
8. ls -l: It is used to list information about files and directories within the file system

Step 4: Choose Download file from Actions dropdown menu

Dept. of CSE, BIT 2024-2025 2


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 5: Provide the path to the file created ([Link])

Step 6: An empty file “[Link]” is downloaded

Dept. of CSE, BIT 2024-2025 3


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 7: Add content in the downloaded file([Link]) and save

Step 8: Execute ‘rm’ command. To upload file, click on Upload file option from the Actions
dropdown menu

Dept. of CSE, BIT 2024-2025 4


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 9: Upload [Link] file

Step 10: Once uploaded successfully, check the contents of [Link] using the ‘cat’
command

Dept. of CSE, BIT 2024-2025 5


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Steps for creating VPC Environment


Note : Downloading and uploading of file does not work in Virtual Private Cloud (VPC)

Step 1: From the Actions menu choose ‘Create VPC environment’

Step 2: Give a VPC name and choose VPC, Subnet and the default security group. Click on
Create

Dept. of CSE, BIT 2024-2025 6


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 3: Execute the same commands as of CloudShell in the VPC window except for
download and upload file options

Dept. of CSE, BIT 2024-2025 7


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 4: Once all the commands are executed delete the VPC

Step 5: Also delete the CloudShell once the commands are executed

AWS Cloud9 IDE: AWS Cloud9 is a cloud-based integrated development environment


(IDE) provided by Amazon Web Services. It allows you to write, run, and debug code with
just a web browser, and it integrates seamlessly with AWS services. It is designed to make the
development process easier and more collaborative, especially for developers working on
cloud-based applications Note : Using AWS Cloud9 would be costlier than AWS CloudShell,
as an alternative, we use Virtual Private Cloud (VPC) and Elastic Compute Cloud (EC2).

Dept. of CSE, BIT 2024-2025 8


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Steps to create EC2 instance:

Step 1: Open EC2 in AWS Console and click on Launch Instance

Dept. of CSE, BIT 2024-2025 9


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 2: Give the name of the EC2 instance and select the Amazon linux as Operating System.

Dept. of CSE, BIT 2024-2025 10


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 3 : Select the instance type as [Link] and create a new key pair

Dept. of CSE, BIT 2024-2025 11


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 4: Keep the default options and click on launch instance

Step 5: Confirmation of the launch of our new instance

Dept. of CSE, BIT 2024-2025 12


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 6: Click on Instances. It displays the instances that are running. Click on Instance ID to
know about a particular instance.

Step 7: Click on the Connect option on the top to connect to an instance.

Dept. of CSE, BIT 2024-2025 13


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 8: Keep the default options and click on Connect

Step 9: An Amazon-Linux terminal is displayed

Dept. of CSE, BIT 2024-2025 14


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 10: Execute the commands executed in VPC in this terminal

Step 11: The CloudShell button on the bottom-left corner can be clicked to open a shell
terminal. We can execute commands and create VPC here.

Dept. of CSE, BIT 2024-2025 15


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 12: Delete the EC2 instance after execution by clicking on Terminate(delete) instance

Step 13: Indicates the successful termination of the instance.

Dept. of CSE, BIT 2024-2025 16


1BI22CS011 (AISHWARYA A) Cloud Computing Lab

Step 14: Also delete the corresponding key pair and Security groups associated with this
instance.

Step 15: User can sign-out of the AWS account after these steps.

Dept. of CSE, BIT 2024-2025 17

You might also like