Amazon EBS FAQs
General
Open allAmazon EBS allows you to create storage volumes and attach them to Amazon EC2 instances. Once attached, you can create a file system on top of these volumes, run a database, or use them just like you would use block storage. Amazon EBS volumes are placed in a specific Availability Zone, where they are automatically replicated to protect from the failure of a single component. All EBS volume types offer durable snapshot capabilities and are designed for high availability.
Unlike the data stored on a local instance store (which persists only as long as that instance is alive), data stored on an Amazon EBS volume can persist independently of the life of the instance. Therefore, we recommend that you use the local instance store only for temporary data. For data requiring a higher level of durability, we recommend using Amazon EBS volumes or backing up the data to Amazon S3. If you are using an Amazon EBS volume as a root partition, set the Delete on termination flag to "No" if you want your Amazon EBS volume to persist outside the life of the instance.
Amazon EBS provides four volume types: Provisioned IOPS SSD (io2a, io2, and io1), General Purpose SSD (gp3, gp3a, and gp2), Throughput Optimized HDD (st1), and Cold HDD (sc1).
EBS General Purpose Adaptive Volumes (gp3a) and EBS General Purpose Volumes (gp3) let you provision IOPS and throughput independent of storage size, scaling up to 80,000 IOPS and 2,000 MB/s of throughput per volume. They are designed to offer single-digit millisecond latency while delivering the provisioned performance 99% of the time. gp3 charges for provisioned storage and performance. gp3a charges for the data you store, not the provisioned amount, and delivers the same performance as gp3. Unlike gp3, it does not include 3,000 IOPS and 125 MB/s at no charge. You provision the performance you need, starting at 1,000 IOPS.
EBS Provisioned IOPS Adaptive Volumes (io2a) delivers the same performance as EBS Provisioned IOPS Volumes (io2) and never costs more. io2a should be used for every workload you would run on io2, except when io2 is needed for multi-AZ. io2a (and io2) are the highest performance EBS volumes, designed to provide up to 256,000 IOPS and 4,000 MB/s of throughput per volume, 1,000 IOPS per GB, and 99.999% durability. They deliver an average latency of under 500 microseconds for 16 KiB I/O operations and reduce the frequency of I/Os exceeding 800 microseconds by over 10X compared with General Purpose volumes, making them ideal for your largest, most I/O-intensive, mission-critical deployments such as Oracle, SAP HANA, Microsoft SQL Server, and SAS Analytics. To reach the maximum IOPS and throughput limits, attach the volume to a Nitro System EC2 instance.
Amazon EBS includes two major categories of volumes: SSD-backed storage for transactional workloads (performance depends primarily on IOPS, latency, and durability) and HDD-backed storage for throughput workloads (performance depends primarily on throughput, measured in MB/s).
SSD-backed volumes are designed for transactional, IOPS-intensive database workloads, boot volumes, and workloads that require high IOPS. SSD-backed volumes include Provisioned IOPS SSD (io2a, io2, and io1) and General Purpose SSD (gp3, gp3a, and gp2). io2a is the default choice for business-critical applications, offering durability at 99.999% in a single-AZ configuration, average latency below 500 microseconds for 16KiB I/O operations, and 10X fewer I/Os exceeding 800 microseconds than General Purpose volumes. Use io2 only when you need the higher availability of multi-AZ volumes. General Purpose Volumes provide the right balance of price and performance for most applications that don’t require the highest performance consistency or durability of Provisioned IOPS Volumes. Use gp3a when you have more than 250 GB of unused storage, or store more than 1.5 TB. gp3a charges for the data you store, not the full volume size, and is recommended for storage usage that fluctuates over time or could remain underutilized for longer periods of time. AWS Compute Optimizer identifies which volumes will have lower costs with gp3a.
HDD-backed volumes are designed for throughput-intensive and big-data workloads, large I/O sizes and sequential I/O patterns. They cannot be used as boot volumes. HDD-backed volumes include Throughput Optimized HDD (st1) and Cold HDD (sc1). Use st1 for frequently accessed, throughput-intensive workloads such as data warehouses and log processing. Use sc1, the lowest-cost EBS volume type, for less frequently accessed, colder data where the lowest storage cost matters most.
Higher volume durability, multi-AZ volumes, and snapshots protect against different types of failures, and you can choose to use one, two, or all these approaches based on your data durability and availability requirements. Higher volume durability reduces the probability of losing the primary copy of your data. Multi-AZ volumes protect against unexpected events in Availability Zones and provide faster recovery. Snapshots protect against the unlikely event of a volume failure, and you can copy them to a different Region to protect against an unexpected Region-level disruption.
Amazon EBS volumes are designed to be highly available, reliable, and durable. At no additional charge to you, Amazon EBS volume data is replicated across multiple servers in an Availability Zone to prevent the loss of data from the failure of any single component. For applications that require higher availability, EBS multi-AZ volumes synchronously replicate volumes to a standby replica in a second Availability Zone within the same AWS Region. EBS multi-AZ volumes are designed to deliver zero RPO, and let you fail over to the standby AZ in seconds, for both unexpected disruptions and planned maintenance. You can enable multi-AZ on new gp3 or io2 volumes. Depending on the degree of high availability (HA) that your application requires, we recommend these guidelines to achieve a robust degree of high availability:
1) Design the system to have no single point of failure. For more details, see High Availability and Scaling on AWS.
2) Use automated monitoring, failure detection, and failover mechanisms. See Monitoring the Status of your EBS volumes and Monitoring EBS Volumes using CloudWatch for more details on monitoring your EBS Volume’s performance. For volumes with multi-AZ enabled, you can also monitor multi-AZ health metrics alongside existing I/O metrics and AZ level signals from Amazon Application Recovery Controller to make informed recovery decisions.
3) Prepare operating procedures for manual mechanisms to respond to, mitigate, and recover from any failures. This includes detaching unavailable volumes and attaching a backup recovery volume in cases of failure. For more details, see the documentation on Replacing an EBS volume. With multi-AZ volumes, you can instead initiate failover to the standby replica with a single API call.
Changing a volume configuration is easy. The Elastic Volumes feature allows you to increase capacity, tune performance, or change your volume type, including to EBS Adaptive Volumes (gp3a and io2a), with a single CLI call, API call or a few console clicks. For more information about Elastic Volumes, see the Elastic Volumes documentation.
EBS Standard Volumes have been renamed to EBS Magnetic volumes. Any existing volumes will not have been changed as a result of this and there are no functional differences in the EBS Magnetic offering compared to EBS Standard.
Provisioned IOPS SSD io2a, io2, and io1 volumes are available on all EC2 instance types. Use EBS-optimized EC2 instances to deliver consistent and predictable IOPS on io2 and io1 volumes. EBS-optimized instances provide dedicated throughput between Amazon EC2 and Amazon EBS, with options ranging from 62.5 MB/s to 12,500 MB/s based on the instance type used. To achieve the limit of 256,000 IOPS and 4,000 MB/s throughput, you must use io2 or io2a volumes attached to Nitro System-based instances.
You can use Amazon EBS Volume Clones to instantly create a copy of a volume within the same or different account within an Availability Zone, allowing fast access to point-in-time production data with single-digit millisecond latency. To learn more, visit the Volume Clones technical documentation.
You can use Amazon EBS Volume Clones to instantly create a copy of a volume to another account. To learn more, visit the Volume Clones technical documentation.
Adaptive Volumes
Open allAmazon EBS Adaptive Volumes are SSD-backed volumes that charge for the data you store, not the full volume size. You set the volume size you need for growth, but now only pay for the storage that your applications use. Adaptive Volumes lower your storage costs and remove the manual work of right-sizing and tiering data.
Adaptive Volumes are available for two Amazon EBS volume types, EBS General Purpose Adaptive Volumes (gp3a) and EBS Provisioned IOPS Adaptive Volumes (io2a). To determine if gp3a or gp3 is best for your workload, see When should I use EBS General Purpose Adaptive Volumes (gp3a) instead of gp3? and When should I use EBS Provisioned IOPS Adaptive Volumes (io2a)?
No. gp3a and io2a are new volumes within the General Purpose and Provisioned IOPS volume types that you choose based on the nature of your workload. They offer the same performance and durability as gp3 and io2 volumes, and the key difference is how you pay for storage. gp3a delivers the same performance as gp3 however does not include 3,000 IOPS and 125 MB/s at no charge. You provision the performance you need, starting at 1,000 IOPS. Adaptive Volumes (gp3a and io2a) charge for the storage that your applications use.
Adaptive Volumes charge for the data stored on each volume, not the full volume size you set. You can view the storage your applications use with the VolumeConsumedBytes Amazon EBS CloudWatch metric. As the data on a volume grows past 500 GB, the lower rate applies automatically, with nothing to configure or manage. Unused space costs nothing. After your applications or operating system delete data and complete TRIM or discard, your used storage and your cost go down. IOPS and throughput are still charged on what you provision. gp3a delivers the same performance as gp3. Unlike gp3, it does not include 3,000 IOPS and 125 MB/s at no charge, you provision the performance you need, starting at 1,000 IOPS. For current rates, see Amazon EBS pricing.
EBS General Purpose Adaptive Volumes (gp3a) reduce storage costs by up to 50% for volumes larger than 250 GB, compared to gp3. EBS Provisioned IOPS Adaptive Volumes (io2a) reduce storage costs by up to 25% compared to io2. Your savings depend on your volume utilization today.
After you delete your data, you will see your storage costs go down. TRIM and discard are the standard commands an operating system or file system uses to tell a volume which blocks are no longer in use. Adaptive Volumes support TRIM and discard operations by default, so when your applications and operating systems complete TRIM and discard, Adaptive Volumes recognize the freed storage space and you stop paying for it.
As with any EBS volume, you can increase the size of your Adaptive Volume at any time using Amazon EBS Elastic Volumes, with no downtime. You continue to pay only for the storage your applications use, so increasing the volume size does not increase your storage costs. You can also use Amazon CloudWatch to monitor the storage your applications use and receive an alert before it reaches the volume size.
Yes. You can create Amazon EBS snapshots of gp3a and io2a volumes in the same way you create snapshots of gp3 and io2 volumes. Because Adaptive Volumes support TRIM by default, snapshots you take after your file system frees blocks do not include those blocks, which can lower snapshot size and cost. Snapshots you took earlier do not change.
Choose gp3a when a volume will have more than 250 GB of unused space or stores more than 1.5 TB. Otherwise, choose gp3. AWS Compute Optimizer makes the recommendation for each volume and AWS Pricing Calculator helps you estimate costs. This guidance assumes gp3a is provisioned to match gp3's included baseline of 3,000 IOPS and 125 MB/s. gp3a does not include this baseline and requires a minimum of 1,000 IOPS.
Use io2a for every workload you would run on io2. It delivers the same performance and durability and never costs more. Use io2 only if you need multi-AZ volumes. EBS Provisioned IOPS Adaptive Volumes (io2a) reduce storage costs by up to 25% when compared to io2.
EBS General Purpose Adaptive Volumes (gp3a) deliver the same performance as gp3, including maximum IOPS, maximum throughput, and latency. Unlike gp3, gp3a does not include 3,000 IOPS and 125 MB/s at no charge. You provision the performance you need, starting at 1,000 IOPS.
EBS Provisioned IOPS Adaptive Volumes (io2a) have the same performance capabilities as io2, including max IOPS, max throughput, and latency. For io2a, IOPS are charged on a provisioned basis, just like io2.
EBS Adaptive Volumes are designed to provide 99.999% durability for io2a and 99.8% – 99.9% durability for gp3a.
gp3a volumes charge for the data you store, not the full volume size. It is priced in two tiers, and the rate of the second tier is lower than the first tier. As the data on a volume grows past 500 GB, the lower rate applies automatically, with nothing to configure or manage. Unlike gp3, gp3a does not include the baseline 3,000 IOPS and 125 MB/s of throughput. Performance needs to be provisioned separately for gp3a, and it requires a minimum of 1,000 IOPS. IOPS and throughput pricing is unchanged and continues to be charged on the amount provisioned. gp3a is billed in the same per-second increments as gp3, with a 60-second minimum and based on peak usage every hour. You can view your usage with the VolumeConsumedBytes Amazon EBS CloudWatch metric. Learn more on the EBS pricing page.
EBS Provisioned IOPS Adaptive Volumes (io2a) charge for the data you store, not the full volume size. io2a storage never costs more than io2, and costs less when data stored is below the volume size. As the data on a volume grows past 500 GB, the lower rate applies automatically, with nothing to configure or manage. io2a is billed in the same per-second increments as io2, with a 60-second minimum and based on peak usage every hour. You can view your usage with the VolumeConsumedBytes Amazon EBS CloudWatch metric. Learn more on the EBS pricing page.
Yes. You can view your usage with the VolumeConsumedBytes Amazon EBS CloudWatch metric.
Use Amazon EBS Elastic Volumes to change your volume type to gp3a or io2a from the AWS Management Console, AWS CLI, or API. If your instance supports Elastic Volumes, you can make this change without detaching the volume or restarting the instance, so your application keeps running while the change takes effect. There is no charge to modify a volume and you can change back to gp3 if desired. For step-by-step instructions, see Modify an Amazon EBS volume using Elastic Volumes. You are charged for the new configuration once the modification starts. gp3a does not include the free baseline of 3,000 IOPS and 125 MB/s throughput, so when you change a volume from gp3 to gp3a, you begin paying for the IOPS and throughput you have provisioned. Review your performance needs before you migrate so you can set IOPS and throughput to the level your workload requires.
Multi-AZ
Open allMulti-AZ volumes help you keep critical applications highly available across two Availability Zones and designed to deliver zero RPO. EBS manages synchronous replication automatically at the storage layer, so it works with any operating system or hypervisor without additional replication tooling. Multi-AZ volumes do not require an EC2 instance in the standby Availability Zone, saving on infrastructure and licensing costs. If you rely on SAN-based synchronous replication on premises, multi-AZ volumes let you bring those workloads to AWS without re-architecting them.
RTO (Recovery Time Objective) is the maximum acceptable time to restore your application to service, in other words, how quickly you need to be back up and running. It is distinct from RPO (Recovery Point Objective), which measures acceptable data currency; multi-AZ volumes are designed to deliver an RPO of zero, so no committed writes are lost.
EBS multi-AZ volumes are designed to deliver a recovery point objective (RPO) of zero and are designed to complete the storage failover in less than 10 seconds, measured from when you initiate failover to when the standby replica is promoted to active. After failover, you can expect an up-to-date copy of your data in your new active Availability Zone with no committed writes lost. End-to-end recovery time also depends on your instance, application, and network configuration. For faster recovery, consider automating your failover workflow.
Use multi-AZ volumes for business-critical applications that need cross-AZ resilience for planned maintenance and unexpected events, including workloads migrating from on-premises storage that use cross-site replication. Use single-AZ volumes when an application does not require cross-AZ resilience. You can also mix both, attaching single-AZ and multi-AZ volumes to the same EC2 instance.
EBS multi-AZ is supported on both io2 and gp3.
You can use any Nitro-based EC2 instance. You can attach up to 64 multi-AZ volumes to a single instance, subject to the instance type’s volume attachment limit.
Yes. Multi-AZ is supported on both boot and data volumes. You configure multi-AZ when you create the volume, including at instance launch. For Windows instances that use EC2Launch v1, additional configuration is required before failover. For more information, see the EBS User Guide.
No, but it is strongly recommended. Using the same standby AZ for all EBS multi-AZ volumes attached to an instance ensures that after failover, all your data is available in the same AZ.
Multi-AZ volumes report two status values. The replication data state is the state of data replication between the active and standby replicas: in-sync when the replicas are synchronized, catching-up when replication has resumed and is catching up on data written only to the active replica, or out-of-sync when replication has stopped. The failover readiness reports whether the volume is ready to fail over: ready or not-ready. Failover readiness reflects both the health of the standby Availability Zone infrastructure and the data replication state. You can monitor these values with the DescribeVolumeStatus API, Amazon CloudWatch metrics, and the EBS NVMe health information log. For metric names, values, and granularity for each method, see the EBS User Guide.
You can fail over a volume or all multi-AZ volumes attached to an EC2 instance to the standby AZ by initiating failover through the API or console. You monitor volume health and AZ health signals and decide when to call FailoverVolumes. EBS does not automatically fail over to the standby AZ. For volume-level signals, you can monitor I/O performance metrics such as stalled I/O or write latency. For AZ-level signals, you can consume ARC zonal autoshift observer notifications that indicate the status of an Availability Zone.
EBS multi-AZ volumes do not support Multi-Attach, Fast Snapshot Restore, Volume Clones, managed instances, Fault Injection Simulation testing, auto-enable IO for impaired volumes, Auto Scaling groups, Spot Instances, and the CreateReplaceRootVolumeTask API.
Performance
Open allWhen attached to EBS-optimized instances, io2 and io2a volumes are designed to deliver within 10% of the provisioned IOPS performance 99.9% of the time in a given year. io2 and io2a volumes also deliver better outlier latency experience compared to General Purpose volumes by reducing the frequency of IOs that exceed 800 microseconds by more than 10 times. Your exact performance depends on your application’s I/O requirements.
When attached to Nitro System-based EC2 instances, io2 and io2a volumes are designed to deliver an average latency of under 500 microseconds for 16KiB I/O operations. The I/O size of your workload will affect the observed average latency as latency increases with larger I/O size.
Yes, it does. When you provision IOPS for io2 and io2a volumes, the IOPS rate you get depends on the I/O size of your application reads and writes. Provisioned IOPS volumes have a base I/O size of 16KB. So, if you have provisioned a volume with 40,000 IOPS for an I/O size of 16KB, it will achieve up to 40,000 IOPS at that size. If the I/O size is increased to 256 KB, then you will achieve up to 16,000 IOPS, since the maximum throughput of 4000 MB/s is achieved at 16,000 IOPS. For more details, please visit the technical documentation on Provisioned IOPS volumes. You can use Amazon CloudWatch to monitor your throughput and I/O sizes.
When attached to Nitro System-based EC2 instances, io2 and io2a volumes deliver better outlier latency experience compared to General Purpose volumes by reducing the frequency of IOs that exceed 800 microseconds by more than 10 times. For maximum performance consistency with new volumes created from a snapshot, we recommend enabling Fast Snapshot Restore (FSR) on your snapshots. EBS volumes restored from FSR-enabled snapshots instantly receive their full performance.
Another factor that can impact your performance is if your application isn’t sending enough I/O requests. This can be monitored by looking at your volume’s queue depth. The queue depth is the number of pending I/O requests from your application to your volume. For maximum consistency, a Provisioned IOPS volume must maintain an average queue depth (rounded to the nearest whole number) of one for every 1000 provisioned IOPS in a minute. For example, for a volume provisioned with 3000 IOPS, the queue depth average must be 3. For more information about ensuring consistent performance of your volumes, see Increasing EBS Performance.
When attached to EBS-optimized instances, Throughput Optimized HDD (st1) and Cold HDD (sc1) volumes are designed to deliver within 10% of the expected throughput performance 99% of the time in a given year. Your exact performance depends on your application’s I/O requirements and the performance of your EC2 instance.
Yes. The throughput rate you get depends on the I/O size of your application reads and writes. HDD-backed volumes process reads and writes in I/O sizes of 1MB. Sequential I/Os are merged and processed as 1 MB units while each non-sequential I/O is processed as 1MB even if the actual I/O size is smaller. Thus, while a transactional workload with small, random IOs, such as a database, won't perform well on HDD-backed volumes, sequential I/Os and large I/O sizes will achieve the advertised performance of st1 and sc1 for a longer period of time.
Throughput Optimized HDD (st1) and Cold HDD (sc1) volumes attached to EBS-optimized instances are designed to offer consistent performance, delivering within 10% of the expected throughput performance 99% of the time in a given year. There are several factors that could affect the level of consistency you see. For example, the relative balance between random and sequential I/O operations on the volume can impact your performance. Too many random small I/O operations will quickly deplete your I/O credits and lower your performance down to the baseline rate. Your throughput rate may also be lower depending on the instance selected. Although st1 can drive throughput up to 500 MB/s, performance will be limited by the separate instance-level limit for EBS traffic. Another factor is taking a snapshot which will decrease expected write performance down to the baseline rate, until the snapshot completes. This is specific to st1 and sc1.
Your performance can also be impacted if your application isn’t sending enough I/O requests. This can be monitored by looking at your volume’s queue depth and I/O size. The queue depth is the number of pending I/O requests from your application to your volume. For maximum consistency, HDD-backed volumes must maintain an average queue depth (rounded to the nearest whole number) of four or more for every 1 MB sequential I/O. For more information about ensuring consistent performance of your volumes, see Increasing EBS Performance.
Yes. You can stripe multiple volumes together to achieve up to 400,000 IOPS or 12,500 Mbps when attached to larger EC2 instances. We recommend using io2 and io2a volumes for higher performance requirements without needing the operational management of striping multiple volumes. Performance for st1 and sc1 scales linearly with volume size so there may not be as much of a benefit to stripe these volumes together.
EBS is a multi-tenant block storage service. We employ rate limiting as a mechanism to avoid resource contention. This starts with having defined performance criteria for the volumes – our volume types (gp2, PIOPS, st1, and sc1) all have defined performance characteristics in terms of IOPS and throughput. The next step is defining performance at the instance level. Each EBS Optimized instance has defined performance (both throughput and IOPS) for the set of EBS volumes attached to the instance. A customer can, therefore, size instances and volumes to get the desired level of performance. In addition, customers can use our reported metrics to observe instance level and volume level performance. They can set alarms to determine if what they are seeing does not match the expected performance – the metrics can also help determine if customers are configured at the right type of instance with the right amount of performance at the volume level or not. On the EBS end, we use the configured performance to inform how we allocate the appropriate instance and EBS infrastructure to support the volumes. By appropriately allocating infrastructure, we avoid resource contention. Additionally, we constantly monitor our infrastructure. This monitoring allows us to detect infrastructure failure (or imminent infrastructure failure) and therefore, move the volumes pro-actively to functioning hardware while the underlying infrastructure is either repaired or replaced (as appropriate).
When attached to EBS-optimized instances, General Purpose SSD (gp3, gp3a, and gp2) volumes are designed to deliver within 10% of the provisioned IOPS performance 99% of the time in a given year. Your exact performance depends on your application’s I/O requirements.
When attached to EBS-optimized instances, General Purpose SSD (gp3, gp3a, and gp2) volumes can achieve single digit millisecond latencies. Your exact performance depends on your application’s I/O requirements.
No. All General Purpose SSD (gp3) volumes include 3,000 IOPS and 125 MB/s of consistent performance at no additional cost. Volumes can sustain the full 3,000 IOPS and 125 MB/s indefinitely. EBS General Purpose Adaptive Volumes (gp3a) do not include this baseline. You provision IOPS and throughput for gp3a, with a minimum of 1,000 IOPS.
General Purpose SSD (gp2) volumes that are under 1,000 GB receive burst IOPS performance up to 3,000 IOPS for at least 30 min of sustained performance. Additionally, gp2 volumes deliver consistent performance of 3 IOPS per provisioned GB. For example, a 500 GB volume is capable of driving 1,500 IOPS consistently, and bursting to 3,000 IOPS for 60 minutes (3,000 IOPS * 60 seconds * 30 minutes / 1,500 IOPS / 60 seconds).
EBS Block Express is the next generation of Amazon EBS storage server architecture purpose-built to deliver the highest levels of performance with sub-millisecond latency for block storage at cloud scale. Block Express does this by using Scalable Reliable Datagrams (SRD), a high-performance lower-latency network protocol, to communicate with Nitro System-based EC2 instances. This is the same high performance and low latency network interface that is used for inter-instance communication in Elastic Fabric Adapter (EFA) for High Performance Computing (HPC) and Machine Learning (ML) workloads. Additionally, Block Express offers modular software and hardware building blocks that can be assembled in many different ways, giving us the flexibility to design and deliver improved performance and new features at a faster rate.
io2 and io2a are suited for performance and capacity intensive workloads that benefit from lower latency, better latency consistency, higher IOPS, higher throughput, or larger capacity in a single volume. These workloads include relational and NoSQL databases such as SAP HANA, Oracle, Microsoft SQL Server, PostgreSQL, MySQL, MongoDB, Cassandra, and critical business operation workloads such as SAP Business Suite, NetWeaver, Oracle eBusiness, PeopleSoft, Siebel, and ERP workloads such as Infor LN and Infor M3. Use io2a when you want to pay only for the storage your applications use. Use io2 when you need the higher availability of multi-AZ volumes.
You should use Provisioned Rate for Volume Initialization if you need your volumes to be fully performant within a predictable amount of time. If you have workloads that need the underlying EBS volumes to be fully initialized as quickly as possible, then you should use this feature. If you want to launch hundreds of EC2 instances (from EBS-backed Amazon Machine Images) or hundreds of EBS volumes (from EBS Snapshots) and need them all to be initialized as quickly as possible, then you should also use this feature.
When launching new EC2 instances from EBS-backed AMIs or creating new EBS volumes from EBS Snapshots, you should enter a desired volume initialization rate.
Amazon EBS gp3 volumes are ideal for applications that require a balance between cost and performance, including medium-sized, single-instance databases, data analytics solutions, virtual desktops, web servers, and boot volumes. For applications that need higher durability, better latency consistency, or higher IOPS and throughput than gp3 can provide, we recommend using io2 or io2a volumes. For long-running workloads, such as databases, with storage patterns that fluctuate over time or could remain underutilized for longer periods, EBS General Purpose Adaptive Volumes (gp3a) is lower cost when the volume has more than 250 GB of unused space or stores more than 1.5 TB. Otherwise, choose gp3. AWS Compute Optimizer makes the recommendation for each volume and AWS Pricing Calculator helps you estimate costs. This guidance assumes gp3a is provisioned to match gp3's included 3,000 IOPS and 125 MB/s.
No, the performance of the source volume is unaffected during or after the copy operation. To learn more, visit the Volume Clones technical documentation.
Snapshots
Open all- List Snapshot Blocks: The ListSnapshotBlocks API operation returns the block indexes and block tokens for blocks in the specified snapshot.
- List Changed Blocks: The ListChangedBlocks API operation returns the block indexes and block tokens for blocks that are different between two specified snapshots of the same volume/snapshot lineage.
- Get Snapshot Blocks: The GetSnapshotBlock API operation returns the data in a block for the specified snapshot ID, block index, and block token.
- Start Snapshot: The StartSnapshot operation starts a snapshot, either as an incremental snapshot of an existing one or as a new snapshot. The started snapshot remains in a pending state until it is completed using the CompleteSnapshot action.
- Put Snapshot Block: The PutSnapshot operation adds data in the form of individual blocks to a started snapshot that is in a pending state. You must specify a Base64-encoded SHA256 checksum for the block of data transmitted. The service validates the checksum after the transmission is completed. The request fails if the checksum computed by service doesn’t match what you specified.
- Complete Snapshot: The CompleteSnapshot operation completes a started snapshot that is in a pending state. The snapshot is then changed to a completed state.
This feature can be used via the following APIs that can be called using AWS CLI or via AWS SDK.
For more information, please refer to technical documentation.
GetSnapshotBlock and PutSnapshotBlock APIs support 512KiB block size.
No, snapshots are only available through the Amazon EC2 API.
No, snapshots can be done in real time while the volume is attached and in use. However, snapshots only capture data that has been written to your Amazon EBS volume, which might exclude any data that has been locally cached by your application or OS. To ensure consistent snapshots on volumes attached to an instance, we recommend detaching the volume cleanly, issuing the snapshot command, and then reattaching the volume. For Amazon EBS volumes that serve as root devices, we recommend shutting down the machine to take a clean snapshot.
By design, an EBS Snapshot of an entire 16 TB volume should take no longer than the time it takes to snapshot an entire 1 TB volume. However, the actual time taken to create a snapshot depends on several factors including the amount of data that has changed since the last snapshot of the EBS volume.
Each snapshot is given a unique identifier, and customers can create volumes based on any of their existing snapshots.
You can use the AWS Management Console to find public datasets stored as Amazon Snapshots. Log into the console, select the Amazon EC2 Service, select Snapshots and then filter on Public Snapshots. All information on public datasets is available in our AWS Public Datasets resource center.
You should enable FSR on snapshots if you are concerned about latency of data access when you restore data from a snapshot to a volume and want to avoid the initial performance hit during initialization. FSR is intended to help with use cases such as virtual desktop infrastructure (VDI), backup & restore, test/dev volume copies, and booting from custom AMIs. By enabling FSR on your snapshot, you will see improved and predictable performance whenever you need to restore data from that snapshot.
No. FSR-enabled snapshots improve restoring backup data from your snapshot to your volumes. FSR-enabled snapshots do not speed up snapshot creation time.
To use the feature, invoke the new enable-fast-snapshot-restores API on a snapshot within the availability zone (AZ) where initialized volumes are to be restored.
The FSR-enabled snapshot may be in any one of the following states: enabling, optimizing, enabled, disabling, disabled. State transitions are published as CloudWatch events and the FSR state can be checked via the describe-fast-snapshot-restores API.
Enabling FSR on a snapshot does not change any existing snapshot API interactions, and existing workflows will not need to change. FSR can be enabled or disabled on account-owned snapshots only. FSR cannot be applied to shared snapshots. You can view the list of your FSR-enabled snapshots via API or the console.
Volumes created from an FSR-enabled snapshot are fully initialized. However, there are limits on the number of volumes that can be created with immediate full performance. These limits are expressed in the form of a credit bucket that is associated with an FSR-enabled snapshot in a given AZ. The important things to know regarding credits:
1. A single volume create operation consumes a single credit
2. The number of credits is a function of the FSR-enabled snapshot size
3. Credits refill over time
4. Maximum credit bucket size is 10
To estimate your credit bucket size and fill rate, divide 1,024 by your snapshot size. For example, a 100 GB FSR-enabled snapshot will have the maximum balance of 10 credits with a fill rate of 10 credits every hour. A 4 TB snapshot will have a maximum balance of 1 with a fill rate of 1 credit every 4 hours.
It's important to note that the credit bucket size is a function of the FSR-enabled snapshot size, not the size of the volumes that are created. For example, it is possible to create up to ten 1TB volumes from a 100GB snapshot at once.
Lastly, each AZ in which the snapshot is FSR-enabled gets its own credit bucket independent of other AZs.
The size of the create credit bucket represents the maximum number and the balance of the credit bucket represents the number of creates available. When filled, up to 10 initialized volumes can be created from an FSR-enabled snapshot at once. Both the maximum size of the credit bucket and the credit bucket balance are published as CloudWatch metrics. Volume creations beyond the limit will proceed as if FSR is not enabled on the snapshot.
When using FSR, a new EBS-specific attribute (fastRestored) is added in the DescribeVolumes API to denote the status at create time. When a volume is created from an FSR-enabled snapshot without sufficient volume-create credits, the create will succeed but the volume will not be initialized.
When you delete a snapshot, the FSR for your snapshot is automatically disabled and FSR billing for the snapshot will be terminated.
You can use Amazon Data Lifecycle Manager and AWS Systems Manager (SSM) to coordinate freeze, flush I/O, and unfreeze of your application or database as well as the initialization of EBS Snapshots. You will need to provide commands to perform the actions that are specific to your application or database. You can also refer to our documentation for AWS-provided code and SSM documents for MySQL, PostgreSQL, and Windows applications.
Encryption
Open allAmazon EBS encryption offers seamless encryption of EBS data volumes, boot volumes and snapshots, eliminating the need to build and maintain a secure key management infrastructure. EBS encryption enables data at rest security by encrypting your data using Amazon-managed keys, or keys you create and manage using the AWS Key Management Service (KMS). The encryption occurs on the servers that host EC2 instances, providing encryption of data as it moves between EC2 instances and EBS storage. For more details, see Amazon EBS encryption in the Amazon EC2 User Guide.
AWS KMS is a managed service that makes it easy for you to create and control the encryption keys used to encrypt your data. AWS Key Management Service is integrated with other AWS services including Amazon EBS, Amazon S3, and Amazon Redshift, to make it simple to encrypt your data with encryption keys that you manage. AWS Key Management Service is also integrated with AWS CloudTrail to provide you with logs of all key usage to help meet your regulatory and compliance needs. To learn more about KMS, visit the AWS Key Management Service product page.
You can use Amazon EBS encryption to meet security and encryption compliance requirements for data at rest encryption in the cloud. Pairing encryption with existing IAM access control policies improves your company’s defense-in-depth strategy.
Amazon EBS encryption handles key management for you. Each newly created volume gets a unique 256-bit AES key; Volumes created from the encrypted snapshots share the key. These keys are protected by our own key management infrastructure, which implements strong logical and physical security controls to prevent unauthorized access. Your data and associated keys are encrypted using the industry-standard AES-256 algorithm.
Yes.
Yes, using customer master keys (CMKs) that are either AWS-managed or customer-managed. You can specify the volume details and encryption through a RunInstances API call with the BlockDeviceMapping parameter or through the Launch Wizard in the EC2 Console.
Yes, you can create encrypted data volume with either default or custom CMK encryption at the time of instances launch. You can specify the volume details and encryption through BlockDeviceMapping object in RunInstances API call or through Launch Wizard in EC2 Console.
Yes. See technical documentation for details.
Yes, you can enable EBS encryption by default with a single setting per region. This ensures that all new volumes are always encrypted. Refer to technical documentation for more details.
Billing and metering
Open allYes, you will be billed for the IOPS provisioned when it is disconnected from an instance. When a volume is detached, we recommend you consider creating a snapshot and deleting the volume to reduce costs. For more information, see the "Underutilized Amazon EBS Volumes" cost optimization check in Trusted Advisor. This item checks your Amazon Elastic Block Store (Amazon EBS) volume configurations and warns when volumes appear to be underused.
Except as otherwise noted, our prices are exclusive of applicable taxes and duties, including VAT and applicable sales tax. For customers with a Japanese billing address, use of AWS services is subject to Japanese Consumption Tax. Learn more.
You should use Provisioned Rate for Volume Initialization if you need your volumes to be fully performant within a predictable amount of time. If you have workloads that need the underlying EBS volumes to be fully initialized as quickly as possible, then you should use this feature. If you want to launch hundreds of EC2 instances (from EBS-backed Amazon Machine Images) or hundreds of EBS volumes (from EBS Snapshots) and need them all to be initialized as quickly as possible, then you should also use this feature.
You can use Amazon EBS Volume Clones to instantly create a copy of a volume to another account. To learn more, visit the Volume Clones technical documentation.
Multi-Attach
Open allNo. Multi-Attach can be enabled on an EBS Provisioned IOPS volume and there will be charges for the storage (GB-Mo) and IOPS (IOPS-Mo) provisioned.
No.
The volume's deleteOnTermination behavior is determined by the configuration of the last attached instance that is terminated. To ensure predictable delete on termination behavior, enable or disable 'deleteOnTermination' for all of the instances to which the volume is attached.
If you want the volume to be deleted when the attached instances are terminated, enable ‘deleteOnTermination’ for all of instances to which the volume is attached. If you want to retain the volume after the attached instances have been terminated, disable ‘deleteOnTermination’ for all attached instances. For more information, see Multi-Attach technical documentation.
Your application can use Multi-Attach if the application is built on Windows Server Failover Cluster, coordinates safe access to shared storage using NVMe reservations, or coordinates safe access at the application-level.