PDC Lab 13
PDC Lab 13
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.
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
2
NAME: FARIHA SAEED SECTION: B ROLL NO: 2020F-BCE-094
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
4
NAME: FARIHA SAEED SECTION: B ROLL NO: 2020F-BCE-094
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.