0% found this document useful (0 votes)
142 views

Cloud Computing: Lab Assignment

This document summarizes a cloud computing lab assignment that involved setting up EC2 instances, an S3 bucket, and SQS queues on AWS. It describes launching two Ubuntu EC2 instances, creating an S3 bucket to store files processed between the instances, and establishing two SQS queues - one for input and one for output. Code was executed locally and on the EC2 instances using Python scripts to implement a workflow between the AWS services, moving a file between S3 and the queues. Screenshots document the setup and execution.

Uploaded by

Rajesh Bhardwaj
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)
142 views

Cloud Computing: Lab Assignment

This document summarizes a cloud computing lab assignment that involved setting up EC2 instances, an S3 bucket, and SQS queues on AWS. It describes launching two Ubuntu EC2 instances, creating an S3 bucket to store files processed between the instances, and establishing two SQS queues - one for input and one for output. Code was executed locally and on the EC2 instances using Python scripts to implement a workflow between the AWS services, moving a file between S3 and the queues. Screenshots document the setup and execution.

Uploaded by

Rajesh Bhardwaj
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
You are on page 1/ 14

Cloud Computing

LAB ASSIGNMENT

Rajesh Kumar Bhardwaj


2018ht66068
CSI_ZG527
November 19, 2018
Contents
Setting up EC2 instances ..............................................................................................................................2
Configuring S3 .............................................................................................................................................. 4
Configuring the SQS .....................................................................................................................................5
Configuring the EC2 instances to run Python3 and Boto 3 .................................................................... 6
Configuring Authentication and Region for AWSCLI .............................................................................. 6
Code Execution ..............................................................................................................................................7
On Local System: .......................................................................................................................................7
On EC2:...................................................................................................................................................... 9
Screenshot file of S3 bucket s32018ht66068 ............................................................................................. 12

PAGE 1
Setting up EC2 instances
Below are the steps that were followed to setup two EC2 instances in AWS –

1. Open the EC2 dashboard in the AWS console and click Launch Instance

2. Select the Amazon Machine Image, Ubuntu Server 18.04 was selected

3. The instance type offered in the free tier was selected for this assignment

4. Under ‘Number of Instances’ specify 2, leave the rest of the settings at default values.

PAGE 2
5. The default storage option was used

6. Selected existing security group

7. Review and Launch the instance

8. A new key pair was created, downloaded and saved.

9. Two instances were deployed.

PAGE 3
Configuring S3
Below are the steps that were followed to setup an S3 bucket in AWS –

1. The S3 service was selected from the Services menu

2. A new Bucket was created

3. This Bucket will be used to store the files for processing between the two EC2
instances.

PAGE 4
4. The newly created Bucket is empty, without any Objects

Configuring the SQS

Below are the steps that were followed to setup the SQS -
1. The Simple Queue Service (SQS) was selected from the Services menu
2. Two Standard Queues were created, i2018ht66068 and o2018ht66068

3. Both queues created

PAGE 5
Configuring the EC2 instances to run Python3 and Boto 3

Configuring Authentication and Region for AWSCLI


The Access Key ID and Secret Access Key were retrieved from the AWS Management
Console.

PAGE 6
Code Execution
ON LOCAL SYSTEM:
In virtual box Ubuntu was installed with Boto3 SDK for Python to
implement the workflow between the AWS services.

Two python scripts – client.py and server.py are used in this setup. The
client.py is run on one Terminal and the server.py is run on Terminal.

Below screenshots illustrate the workflow –

PAGE 7
PAGE 8
ON EC2:

Two python scripts – client.py and server.py are used in this setup. The
client.py is run on one EC2 instance and the server.py is run on another EC2
instance.

Below screenshots illustrate the workflow –

PAGE 9
PAGE 10
PAGE 11
Screenshot file of S3 bucket s32018ht66068

PAGE 12
PAGE 13

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy