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

PDC Lab 13

Uploaded by

Muhammad Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

PDC Lab 13

Uploaded by

Muhammad Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

NAME: FARIHA SAEED SECTION: B ROLL NO: 2020F-BCE-094

LAB # 13
DEMONSTRATE THE PROCESS OF S3 BUCKET CREATION
AND CHANGE PERMISSIONS TO ALLOW PUBLIC ACCESS
TO CONTENT THROUGH IAM
OBJECTIVE: The purpose of this lab is to demonstrate how to create S3 bucket, upload
and download data by setting permission to allow public access.

Upon completion of this beginner-level Lab you will be able to:


• Create an S3 bucket
• Create a folder within an S3 bucket
• Upload content to S3
• Create IAM users
• Change permissions to allow public access to content
• Set metadata on an S3 bucket
• Delete an S3 bucket and its contents

EXERCISE:
EXERCISE 1:
Configure S3 bucket and set IAM policy to access it from EC2 instance.
Step wise snippet of each configuration
Create a Storage account

1
NAME: FARIHA SAEED SECTION: B ROLL NO: 2020F-BCE-094

Create a Container

Files in Container

Add a new file and check it on Ec2 instance with ls command

2
NAME: FARIHA SAEED SECTION: B ROLL NO: 2020F-BCE-094

Added successfully to Container

EXERCISE 2:
Create a text file on EC2 instance and upload it to S3 bucket. Upload a file on S3 bucket from
your PC and download it on EC2 instance.
Step wise snippet of each configuration
Create a new file on EC2 instance

3
NAME: FARIHA SAEED SECTION: B ROLL NO: 2020F-BCE-094

Uploaded Successfully to Container

Upload a file from PC

4
NAME: FARIHA SAEED SECTION: B ROLL NO: 2020F-BCE-094

Uploaded Successfully to Container

Download on Ec2 instance

CONCLUSION:
In this lab, we successfully demonstrated the creation of an S3 bucket, configured IAM policies
for access from an EC2 instance, and performed file upload/download between EC2 and S3.
Additionally, we extended the exercise to showcase cross-cloud functionality by uploading a file
from a PC to the S3 bucket and downloading it on an Azure-based EC2 equivalent. This
comprehensive demonstration highlights the versatility of S3 and IAM in managing data securely
across cloud environments.

You might also like