Please enable JavaScript.
Coggle requires JavaScript to display documents.
AWS-6.EC2 Instance Storage - Coggle Diagram
AWS-6.EC2 Instance Storage
EBS
EBS Snapshot
Definition
• Make a backup (snapshot) of your EBS volume at a point in time
• Not necessary to detach volume to do snapshot, but recommended
• Can copy snapshots across AZ or Region
Features
Archive
• Move a Snapshot to an ”archive tier” that is 75% cheaper
• Takes within 24 to 72 hours for restoring the archive
Recycle Bin
• Setup rules to retain deleted snapshots so you can recover them after an accidental deletion
• Specify retention (from 1 day to 1 year)
EBS Volume
Network drive
Provisioned capacity
Locked to an Availability Zone
Definition
• An EBS (Elastic Block Store) Volume is a network drive you can attach to your instances while they run
• It allows your instances to persist data, even after their termination
• They can only be mounted to one instance at a time
• They are bound to a specific availability zone
• Analogy: Think of them as a “network USB stick”
• Free tier: 30 GB of free EBS storage of type General Purpose (SSD) or Magnetic per month
AMI
Definition
• AMI =
Amazon Machine Image
• AMI are a customization of an EC2 instance
... You add your own software, configuration, operating system, monitoring…
... Faster boot / configuration time because all your software is pre-packaged
• AMI are built for a specific region (and can be copied across regions)
• You can launch EC2 instances from:
... A Public AMI: AWS provided
... Your own AMI: you make and maintain them yourself
... An AWS Marketplace AMI: an AMI someone else made (and potentially sells)
Process
• Start an EC2 instance and customize it
• Stop the instance (for data integrity)
• Build an AMI – this will also create EBS snapshots
• Launch instances from other AMIs
Image Builder
• Used to automate the creation of Virtual Machines or container images
• => Automate the creation, maintain, validate and test EC2 AMIs
• Can be run on a schedule (weekly, whenever packages are updated, etc…)
• Free service (only pay for the underlying resources)
Instance Store
High-performance hardware disk
• Better I/O performance
• EC2 Instance Store lose their storage if they’re stopped (ephemeral)
• Good for buffer / cache / scratch data / temporary content
• Risk of data loss if hardware fails
• Backups and Replication are your responsibility
EFS
EFS –
Elastic File System
• Managed NFS (network file system) that can be mounted on 100s of EC2
• EFS works with Linux EC2 instances in multi-AZ (all see the same files)
• Highly available, scalable, expensive (3x gp2), pay per use, no capacity planning
EFS Infrequency Access
(EFS-IA)
• Storage class that is cost-optimized for files not accessed every day
• Up to 92% lower cost compared to EFS Standard
• EFS will automatically move your files to EFS-IA based on the last time they were accessed
• Enable EFS-IA with a Lifecycle Policy
• Example: move files that are not accessed for 60 days to EFS-IA
• Transparent to the applications accessing EFS
Shared Responsibility Model
AWS
• Infrastructure
• Replication for data for EBS volumes & EFS drives
• Replacing faulty hardware
• Ensuring their employees cannot access your data
Customer
• Setting up backup / snapshot procedures
• Setting up data encryption
• Responsibility of any data on the drives
• Understanding the risk of using EC2 Instance Store
Amazon FSx
• Launch
3rd party
high-performance file systems
on AWS
• Fully managed service
Amazon FSx for Windows File Server
Amazon FSx for Lustre