Cloud Computing: Lab Assignment
Cloud Computing: Lab Assignment
LAB ASSIGNMENT
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
PAGE 3
Configuring S3
Below are the steps that were followed to setup an S3 bucket in AWS –
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
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
PAGE 5
Configuring the EC2 instances to run Python3 and Boto 3
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.
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.
PAGE 9
PAGE 10
PAGE 11
Screenshot file of S3 bucket s32018ht66068
PAGE 12
PAGE 13