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

Cloud Computing - Lab 5

This document provides instructions for completing tasks using Amazon Web Services (AWS). The tasks include: 1. Creating a bucket with at least 3 objects in Amazon Simple Storage Service (Amazon S3) and making the bucket publicly accessible. 2. Connecting to an AWS Elastic Compute Cloud (EC2) instance from a previous lab, creating another S3 bucket with 3 objects, and making the files publicly accessible. 3. Creating a directory on the EC2 instance containing an application that receives a directory at the command line and saves the files to S3 using versioning similar to git. Optional extras include adding an image to a bucket, using a Docker container from a previous lab, and editing

Uploaded by

Gigi Beton
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)
229 views

Cloud Computing - Lab 5

This document provides instructions for completing tasks using Amazon Web Services (AWS). The tasks include: 1. Creating a bucket with at least 3 objects in Amazon Simple Storage Service (Amazon S3) and making the bucket publicly accessible. 2. Connecting to an AWS Elastic Compute Cloud (EC2) instance from a previous lab, creating another S3 bucket with 3 objects, and making the files publicly accessible. 3. Creating a directory on the EC2 instance containing an application that receives a directory at the command line and saves the files to S3 using versioning similar to git. Optional extras include adding an image to a bucket, using a Docker container from a previous lab, and editing

Uploaded by

Gigi Beton
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/ 2

Cloud Computing

5 t h laboratory

Tasks
1.
Access the AWS Management Console:

1. Access the Learner Lab - Foundational Services page from AWS Academy Instructure
https://awsacademy.instructure.com/courses/11643/modules/items/1016975
2. Access the AWS Management Console: click on Start Lab, wait for the circle to the left of
the AWS link to turn green , then click on that link.

Read Getting Started with Amazon Simple Storage Service -


https://docs.aws.amazon.com/AmazonS3/latest/gsg/GetStartedWithS3.html

Create a bucket with at least 3 objects.

You can create buckets only on the us-east-1 region.

In order to make the bucket resource to be publicly accessible, when the bucket is created, under
Object Ownership, select ACLs enabled. After the bucket is created, go to Permissions, then Edit
and check the Read permission from Everyone (Public access).

2.
Connect to the AWS EC2 instance from the previous laboratory and create at least 3 objects in
another bucket.

1. From Learner Lab - Foundational Services or directly https://labs.vocareum.com/main/, go


to AWS Details from the top menu bar, where it says Cloud Access AWS CLI click on Show.
That information must be copied in the ~/.aws/credentials file on the AWS EC2 instance as
follows.
2. Use ssh to connect to the EC2 instance from the previous lab
3. Configure the access management credentials by running the following commands on the
EC2 instance:
mkdir .aws
nano .aws/credentials
Then copy-paste the credentials and save the file

4. Validate that you have access to S3 by running the command that lists all the s3 buckets:
aws s3 ls

If the aws command is not found then install it: https://discuss.devopscube.com/t/how-to-setup-


aws-cli-on-rhel-7-ec2-server/47

Read Using High-Level (s3) Commands with the AWS CLI -


https://docs.aws.amazon.com/cli/latest/userguide/cli-services-s3-commands.html

and use aws s3 cli commands to create the bucket with at least 3 objects.

Make your files to be publicly accesible.


Access a file from your browser: https://s3.amazonaws.com/bucket-name/file-name

How can I grant public read access to some objects in my Amazon S3 bucket? -
https://aws.amazon.com/premiumsupport/knowledge-center/read-access-objects-s3-bucket/

3.
Create a directory named lab05 in your EC2 instance and create there an application in any
programming language (bash/C++/Java/Python/…) that will receive at the command line a directory
whose files will be saved on Amazon S3.

Use versioning (https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html) to make your


application behave like git add/commit/push.

Extra:

1. Add a picture to one of the buckets,


2. Use the docker image with the web server from the previous laboratory,
3. Edit app.py so that the user can see in the browser the picture from the bucket when
accessing the web server.

You might also like