SHRI VILEPARLE KELAVANI MANDAL’S
SHRI BHAGUBHAI MAFATLAL POLYTECHNIC
INFORMATION TECHNOLOGY DEPARTMENT
COURSE: CLOUD APPLICATION DEVELOPMENT
CODE: CLD198914
SEMESTER: VI
ACADEMIC TERM: 24 JAN 2023 TO 12 MAY 2023
Department Vision
To create a learning environment that nurtures students and transform them into
competent IT Diploma Graduates
Department Mission
M1: To impart technical and managerial skills for pursuing academic excellence
through dynamic learning environment.
M2: To foster industry ready graduates by acquiring and utilizing latest technology.
M3: To strengthen holistic development and Professionalism in the Diploma
graduates.
Basics of AWS Simple Storage Service
(S3)
Mr. M.R. Solanki
Sr. Lecturer, Information Technology Department
[email protected] SBMP
COURSE OUTCOMES
CO1. Implement Virtualization
CO2. Create CLI for cloud and write application for various cloud services
CO3. Implement containerization
CO4. Describe recent trends in cloud computing
COURSE OUTCOME COVERED BY THE SESSION
CO2: Create CLI for cloud and write application for various cloud services
LECTURE OUTCOMES:
Students will be able to:
1) State the purpose of AWS S3
2) Describe basic key terms of AWS S3
3) Discuss and compare storage classes of AWS S3
4) Create a S3 bucket using AWS Management Console
Simple Storage Service(S3)
Amazon Simple Storage Service (Amazon S3) is an object storage service that offers
industry-leading scalability, data availability, security, and performance.
It can store and protect any amount of data for a range of use cases, such as data lakes,
websites, mobile applications, backup and restore, archive, enterprise applications, IoT
devices, and big data analytics.
Provides management features so that you can optimize, organize, and configure access
to your data to meet your specific business, organizational, and compliance
requirements.
Data Lake
A centralized repository designed to store, process, and secure
large amounts of structured, semi structured, and unstructured
data
The AWS Free Tier, gives you 5 GB of storage in the AWS S3
Standard storage tier. This includes up to 2000 PUT, POST,
COPY or LIST requests, 20,000 GET requests and 15 GB of
outgoing data transfer per month for a year.
Simple Storage Service(S3)
Key Terms of S3:
Bucket
Object
Key
Versioning
AWS S3 Key Terms
Bucket:
Data, in S3, is stored in containers called buckets. (bucket stores objects)
Bucket Names must be unique
Can be thought of as a parent folder of data
Each bucket will have its own set of policies and configuration(management &
security)
A bucket has no limit to the amount of objects that it can store
No bucket can exist inside of other buckets
Ownership of a bucket is not transferrable
There is a limit of 100 buckets per AWS account (can be increased if requested
from AWS support)
An S3 bucket policy is an object that allows you to manage access to specific
Amazon S3 storage resources. You can specify permissions for each resource
to allow or deny actions requested by a principal (a user or role).
Bucket policies are an Identity and Access Management (IAM)
mechanism for controlling access to resources.
AWS S3 Key Terms
Object
Fundamental entity type stored in AWS S3.
Max. size of an object – 5TB
Consists of object data and metadata where metadata is a set of name-value pair
that describes the data
Every object is incorporated in a bucket.
Uniquely identified by key (file name), value(file data) and version id within a
bucket
AWS S3 Key Terms
Key:
Key, in S3, is a unique identifier for an object in a bucket
URL Format: https://bucket-name.s3.region-code.amazonaws.com/key-name
https://DOC-EXAMPLE.s3.us-west-2.amazonaws.com/photos/puppy.jpg
‘bucketName+key’ is unique for all objects.
This also means that there can be only one object for a key in a bucket. If you
upload 2 files with the same key. The file uploaded latest will overwrite the
previously contained file.
AWS S3 Key Terms
Source: AWS S3 Tutorial for Beginners 2023 | AWS S3 Overview | Cloud Computing
AWS S3 Key Terms
Versioning:
Versioning means to always keep a record of previously uploaded
files in S3.
Not enabled by default. Once enabled, it is enabled for all objects
in a bucket.
Helpful to prevent unintended overwrites and deletions.
AWS S3 Key Terms
Versioning keeps all the copies of your file, so, it adds cost for storing
multiple copies of your data. For example, 10 copies of a file of size
1GB will have you charged for using 10GB for S3 space
Objects with the same key can be stored in a bucket if versioning is
enabled (since they have a unique version ID).
AWS S3 Key Terms
Bucket Policies:
A document for verifying the access to S3 buckets from within your AWS account
Controls which services and users have what kind of access to your S3 bucket.
Each bucket has its own Bucket Policies.
Lifecycle Rules:
Define lifecycle rules for objects in your bucket that have a well-
defined lifecycle. For example, you can define a rule to archive objects
one year after creation, or delete an object 10 years after creation.
S3 storage classes:
Standard: Suitable for frequently accessed data, that needs to be highly available and
durable.
Standard Infrequent Access (Standard IA): This is a cheaper data-storage class, best
suited for storing infrequently accessed data like log files or data archives. Data retrieval
charges are applied per GB.
All the files on your S3 have their copies stored in a minimum of 3 Availability Zones
Source: AWS S3 Tutorial for Beginners 2023 | AWS S3 Overview | Cloud Computing
S3 storage classes:
Intelligent Tiering: This service class classifies your files automatically into frequently
accessed and infrequently accessed and stores the infrequently accessed data in
infrequent access storage to save costs. It is useful for unpredictable data access to an S3
bucket.
One Zone Infrequent Access (One Zone IA): stores this data in a single availability zone.
Only recommended for infrequently accessed, non-essential data.
Comparison of S3 storage classes
Source: https://www.edureka.co/blog/rds-aws-tutorial/
Creating Bucket and deploying
web pages on static website
Search for S3 service
Click on “Create bucket”
Specify the bucket parameters
Specify bucket parameters
Unblock all public access
Bucket versioning disabled
Click on “Create bucket”
AWS S3
Click on bucket name i.e.“mrs-b1”
AWS S3
Click on “Properties” tab and go to the “Static website hosting”
AWS S3
Click on “Edit” button
Select “Enable”
AWS S3
AWS S3
Specify Index document and Error document
AWS S3
Click on “Objects” tab and click on Upload button
AWS S3
Click on “Add files”
AWS S3
Click on “Upload” button, provide index.html & error.html files
AWS S3
AWS S3
Now, paste the http://mrs-b1.s3-website.ap-south-1.amazonaws.com/index.html on
the browser and see the output
AWS S3
Now, paste the http://mrs-b1.s3-website.ap-south-1.amazonaws.com/errors.html on
the browser and see the output
Now, you can upload your data files i.e. static web pages,
photos, documents, etc.
Credits
[1]https://www.freecodecamp.org/news/how-to-launch-a-site-on-aws-for-free-in-15-minutes-
7b3ce5d8d053/
[2] https://www.mygreatlearning.com/blog/amazon-s3/
[3] https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
[4] https://cloudian.com/blog/s3-bucket-policies-a-practical-guide
[5] Buckets Overview: https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingBucket.html
[6] AWS Web Hosting, https://aws.amazon.com/websites/