Professional Documents
Culture Documents
00 03 Chapter Three Amazon Simple Storage Service (S3)
00 03 Chapter Three Amazon Simple Storage Service (S3)
00 03 Chapter Three Amazon Simple Storage Service (S3)
• Introduction
• Amazon
• Amazon Durability
• Bucket,
• Amazon S3 Pricing
Introduction
S3 stands service and was one of the
Amazon. popular services of Amazon.
limitless Web service API. It has
means single object is once
data which fast and highly available, and you go
model with very minimal rates.
1 of 22 3/9/2020, 2:48 PM
about:blank
S3 Basic Operations
Amazon S3 is a web object store. It stores data as objects within recourses called
buckets. Data can be uploaded and downloaded from Amazon S3 anywhere from the
web using AWS services APIs. You can store objects within a bucket and read, write,
and delete
2 of 22 3/9/2020, 2:48 PM
about:blank
Downloading
One request.
S3 Namespace
Amazon namespace divided into entities called buckets keys. bucket is a
conceptual container for objects stored in S3. Each object stored in S3 has a bucket
that the object belongs to and a unique identifier key. A bucket is thus an entity that
3 of 22 3/9/2020, 2:48 PM
about:blank
group objects and can simulate folder like behavior for access control. A bucket
contains any number of objects.
Bucket namespace is shared among all the users. This means that while creating a
bucket if another user has a bucket of the same name, you will not be allowed to
create a bucket with that name. The bucket name must be unique to all the users.
This be unique across the
S3 Namespace
S3 can store up to 5TB of objects. Type and content of the object are opaque to S3.
Objects associated with them, which
metadata Contenttype and last modified
4 of 22 3/9/2020, 2:48 PM
about:blank
Consistency Model
Consistency model manages the shared data that is distributed in a shared memory
system.
Types
• Strict Consistency
• Sequential Consistency
• Casual
• Weak
• Eventual
Understanding Consistency
5 of 22 3/9/2020, 2:48 PM
about:blank
Amazon
Amazon Request to S3 must
credentials.
6 of 22 3/9/2020, 2:48 PM
about:blank
PUT Object
An example below:
GET
GET object the object from the Amazon S3. you must
have READ access to your object. An example syntax is given below:
DELETE
The DELETE object API removes the null version of the object and inserts a delete
7 of 22 3/9/2020, 2:48 PM
about:blank
marker. This is considered as the current version of the object. Amazon S3 does not
remove any object until a null version of it is present. An example syntax is given
below:
A sample follows:
8 of 22 3/9/2020, 2:48 PM
about:blank
List of
By default, Amazon S3 is The default ACL grants full rights to the and
denies
• Specific AWS accounts: Any AWS account can be granted rights to the S3
resource. You grant permission to an AWS account by the authorized user ID or
the email address.
9 of 22 3/9/2020, 2:48 PM
about:blank
READ_ACP Allows reading the bucket ACL Allows reading the object ACL
The grantee
S3 Multipart
S3 Data
10 of 22 3/9/2020, 2:48 PM
about:blank
data. When you upload an object, you can mention that S3 should encrypt the data.
You simply PUT an object and request encryption (in an HTTP header). Bucket
policies to allow, mandate, or forbid encryption at the bucket or object level.
Server-Side Logging
S3 Versioning
Instead of overwriting your objects, you can set versions on them using the S3
versioning feature. You can have two objects with the same key but different version
IDs. If the object is accessed by key, then the latest version of the object is returned.
The object be accessed by “Key”
delete, just a delete marker
Object
Object lifecycle management allows you to manage the lifecycle objects within a
bucket. A set of rules with pre-defined actions allows managing object lifecycle. This
is achieved attaching a prefix to the bucket. The prefix field specifies objects subject
to the expiration rule and the time after which the objects must be deleted. The
objects automatically deleted after expiry period.
Actions include:
• Expiration action: Object expiration is specified, and the object is deleted upon
expiration on your behalf.
11 of 22 3/9/2020, 2:48 PM
about:blank
Amazon Simple Storage Service can be used to host a static website with static
content. They can include client-side scripts. Dynamic websites cannot be hosted on
S3. For hosting a website, an S3 bucket is configured, and the content of the website
is later uploaded which can then be accessed via a Region-specific end-point of the
bucket. s3-website-<AWS-region>.
Another website is by using your
example.
Redirection on x-amz-website-redirect-location
REST
12 of 22 3/9/2020, 2:48 PM
about:blank
Usually, the owner of a bucket pays for its storage and data transfer. If the bucket is
configured as a Requester Pays Bucket, the requester pays for the request and data
downloaded from the bucket. The owner still bears the cost of storing the data but
does not incur charges associated with others accessing the data. Anonymous
access to the bucket is prohibited.
Cross-Region
Requirements replication:
• You can replicate an object from a source bucket to only one destination bucket
Transfer
13 of 22 3/9/2020, 2:48 PM
about:blank
S3 Standard
Reduced
It is a new storage option in S3, which enables customers to reduce their costs by
storing noncritical, diminished data at lower levels of redundancy than Amazon S3’s
standard storage.
14 of 22 3/9/2020, 2:48 PM
about:blank
Amazon S3 Select
S3 One Access
15 of 22 3/9/2020, 2:48 PM
about:blank
Amazon Glacier
Amazon Glacier is for archiving data. This option is for data which is not frequently
accessed and retrieving time of several hours are acceptable. It is extremely low-cost
storage
Amazon S3 Pricing
Amazon S3 charges you for the following three entities:
S3 Pricing
16 of 22 3/9/2020, 2:48 PM
about:blank
There is no charge for data that comes into S3. Below are the current data transfer
rates for Singapore region.
S3 Data Singapore
17 of 22 3/9/2020, 2:48 PM
about:blank
3.
18 of 22 3/9/2020, 2:48 PM
about:blank
5. Create a text file, Hello World, my name is ___ using notepad on your
7. Click Upload
19 of 22 3/9/2020, 2:48 PM
about:blank
9. created in Step 5
20 of 22 3/9/2020, 2:48 PM
about:blank
11. is uploaded to S3
12. Select the Object which you uploaded in the previous step. Select
public permissions
Objects Option under Access
21 of 22 3/9/2020, 2:48 PM
about:blank
13.
22 of 22 3/9/2020, 2:48 PM