2 AWS Storage
2 AWS Storage
Services
Mithun Technologies
[email protected]
+91-9980923226
Storage Types
• Object Storage vs. File Storage vs. Block Storage
• Object storage takes each piece of data and designates it as an object. Data is kept in separate storehouses versus files in folders and is
bundled with associated metadata and a unique identifier to form a storage pool.
• File storage stores data as a single piece of information in a folder to help organize it among other data. This is also called hierarchical
storage, imitating the way that paper files are stored. When you need access to data, your computer system needs to know the path to find
it.
• Block storage takes a file apart into singular blocks of data and then stores these blocks as separate pieces of data. Each piece of data has a
different address, so they don't need to be stored in a file structure.
Storage Options
• EBS
• S3
• EFS
• Snow Ball
• Storage Gateway
EBS (Elastic Block Store)
• A block storage (so you need to format it). This means you are able to choose which type of file
system you want.
• It is really fast
• It is relatively cheap
• With the new announcements from Amazon, you can store up to 16TB data per storage on SSD-s.
• You can snapshot an EBS (while it's still running) for backup reasons
• But it only exists in a particular region. Although you can migrate it to another region, you cannot
just access it across regions (only if you share it via the EC2; but that means you have a file
server)
• You need an EC2 instance to attach it to
• New feature (2017.Feb.15): You can now increase volume size, adjust performance, or change
the volume type while the volume is in use. You can continue to use your application while the
change takes effect.
o Every EC2 instance must have a “root” volume, which maybe or may not be EBS
o By default, EBS root volumes are set to be deleted when instance is terminated. However
we can choose to keep it
Root Volume
Additional
EC2 instance Volume
o This means that you can swap EBS volumes between different EC2 Instances by
“detaching” it from one & “attaching” it to another
Root Volume
Additional
EC2 instance #1 Volume
swap
Root Volume
Additional
EC2 instance #2 Volume
Snapshot
o A snapshot is an image of an EBS volume that can be stored as a backup
o Also can be used to create a duplicate EBS volume
o You cannot attach or detached a snapshot to an EC2 instance
o To restore a snapshot, we need to create a new EBS volume using the snapshot as the
template
EBS Volume
Snapshot of EBS Duplicate of EBS
(original)
Volume Volume
EBS Volume Types
EBS General Purpose (SSD)
This volume type is suitable for small and medium workloads like Root disk EC2 volumes, small and medium database
workloads, frequently logs accessing workloads, etc. By default, SSD supports 3 IOPS (Input Output Operations per
Second)/GB means 1 GB volume will give 3 IOPS, and 10 GB volume will give 30 IOPS. Its storage capacity of one volume
ranges from 1 GB to 1 TB. The cost of one volume is $0.10 per GB for one month.
Reliable and secure storage − Each of the EBS volume will automatically respond to its Availability
Zone to protect from component failure.
Secure − Amazon’s flexible access control policies allows to specify who can access which EBS volumes.
Access control plus encryption offers a strong defense-in-depth security strategy for data.
Higher performance − Amazon EBS uses SSD technology to deliver data results with consistent I/O
performance of application.
Easy data backup − Data backup can be saved by taking point-in-time snapshots of Amazon EBS
volumes.
S3 (Simple Storage Service)
• You can store files and "folders" but can't have locks, permissions etc like you would with a traditional
file system
• This means, by default you can't just mount S3 and use it as your webserver
• But it's perfect for storing your images and videos for your website
• Great for short term archiving (e.g. a few weeks). It's good for long term archiving too, but Glacier is
more cost efficient.
• Great for storing logs
• You can access the data from every region (extra costs may apply)
• Highly Available, Redundant. Basically data loss is not possible (99.999999999% durability, 99.9
uptime SLA)
• Much cheaper than EBS.
• You can serve the content directly to the internet, you can even have a full (static) website working
direct from S3, without an EC2 instance.
Permissions
Policies
Life Cycles
Standard
IA (Infrequent Access)
RRS
Reduced Redundancy Storage (RRS) is an Amazon S3 storage option that enables customers to store noncritical, reproducible
data at lower levels of redundancy than Amazon S3’s standard storage
Glacier
Amazon Glacier is an extremely low-cost storage service that provides durable storage with security features for data archiving
and backup. With Amazon Glacier, customers can store their data cost effectively for months, years, or even decades.
• Long term archive storage
• Extremely cheap to store
• Potentially very expensive to retrieve
• Takes up to 4 hours to "read back" your data (so only store items you know you won't need to retrieve for a long time)
Storage Gateway