AWS News Blog
New – Amazon Elastic Block Store Local Snapshots on AWS Outposts
|
Today I am happy to announce that AWS Outposts customers can now make local snapshots of their Amazon Elastic Block Store (Amazon EBS) volumes, making it easy to meet data residency and local backup requirements. AWS Outposts is a fully managed service that extends AWS infrastructure, services, APIs, and tools to virtually any datacenter, co-location space, or on-premises facility for a truly consistent hybrid experience. Until now, Amazon EBS snapshots on Outposts were stored by default on Amazon Simple Storage Service (Amazon S3) in the AWS Region. If your Outpost is provisioned with Amazon S3 on Outposts, now you have the option to store your snapshots locally on your Outpost.
Customers use AWS Outposts to support applications that need to run on-premises due to low latency, local data processing, or data residency requirements. Customers looking to use AWS services in countries where no AWS Region exists today can opt to run their applications on Outposts. Sometimes data needs to remain in a particular country, state, or municipality for regulatory, contractual, or information security reasons. These customers need the data for snapshots and Amazon Machine Image (AMI) to be stored locally on Outposts to operate their applications. In addition, some of our customers could also see value for workloads that need low latency access to local backups.
EBS Local Snapshots on Outposts is a new capability that enables snapshots and AMI data to be stored locally on Amazon S3 on Outposts. Now you can create and manage EBS Local Snapshots on Outposts through the AWS Management Console, AWS Command Line Interface (AWS CLI), and AWS SDKs. You can also continue to take snapshots of EBS volumes on Outposts, which are stored in S3 in the associated parent Region.
How to Get Started With EBS Local Snapshots on Outposts
To get started, visit the AWS Outposts Management Console to order an Outposts configuration that includes your selected EBS and Amazon S3 storage capacity (EBS snapshots use Amazon S3 on Outposts to store snapshots), or you can add S3 storage to your existing Outposts. EBS Local Snapshots are enabled on Outposts provisioned with Amazon S3 on Outposts.
To create a local EBS snapshot on Outposts, go to the EBS volume console and select the volume you want to create a snapshot from. Click the Actions button, then select Create Snapshot in the dropdown menu.
You can create a snapshot either in the AWS Region or your Outposts when you choose the Snapshot destination. The AWS Region snapshot uses Amazon S3 in the region and the AWS Outposts snapshot uses S3 storage on Outposts for storing the snapshots. Amazon S3 on Outposts is a new storage class, which is designed to durably and redundantly store data on Outposts. Note that due to its scale, Amazon S3 in a region offers higher durability than S3 on Outposts.
You can call CreateSnapshot
with the outpost-arn
parameter set to the Outposts ARN that uniquely identifies your installation. If data residency is not a concern, you can also get the CreateSnapshot
API to create the snapshot in the parent AWS Region by specifying AWS Region as the destination.
$ aws ec2 create-snapshot \
--volume-id vol-1234567890abcdef0 \
--outpost-arn arn:aws:outposts:us-east-1:123456789012:outpost/op-1a2b3c \
--description "local snapshots in outpost"
You can also use commands for the AWS Command Line Interface (AWS CLI) and AWS SDKs e.g. CreateSnapshots
, DescribeSnapshot
, CopySnapshot
, and DeleteSnapshot
to manage snapshots on Outposts, and use Amazon Data Lifecycle Manager to automate snapshots management on Outposts. All local snapshots on Outposts are Encrypted by Default (EBD).
You can set IAM policies for data residency of your snapshots. The policy example below will enforce data residency on the Outposts by denying CreateSnapshot(s) calls to create snapshots in the region from outpost volumes.
{
"Version":"2012-10-17",
"Statement":[
{
"Effect":"Deny",
"Action":[
"ec2:CreateSnapshot",
"ec2:CreateSnapshots"
],
"Resource":"arn:aws:ec2:us-west-2::snapshot/*",
"Condition":{
"StringEquals":{
"ec2:SourceOutpostArn":"arn:aws:outposts:us-west-2:1234567890:outpost/op-1a2b3c"
},
"Null":{
"ec2:OutpostArn":"true"
}
}
},
{
"Effect":"Allow",
"Action":[
"ec2:CreateSnapshot",
"ec2:CreateSnapshots"
],
"Resource":"*"
}
]
}
You can audit your own data residency compliance by calling the DescribeSnapshots
API that will return the snapshot’s storage location. All creation, update, and copy operations are logged in AWS CloudTrail audit logs.
You can copy AMI snapshots from the AWS Region to your Outposts and register them as AMI to launch your EC2 instances on Outposts.
Also, you can do this via simple AWS Command Line Interface (AWS CLI) commands as follows:
$ aws ec2 copy-snapshot \
--region us-west-2 \
--source-region us-west-2 \
--source-snapshot-id snap-1 \
--destination-outpost-arn arn:aws:outposts:us-west-2:123456789012:outpost/op-1a2b3c \
--description "This is my copied snapshot."
Now you can register the snapshot as a local AMI for launching your EC2 instances on your Outposts.
$ aws ec2 register-image \
--root-device-name /dev/sda1 \
--block-device-mappings '[ \
{"DeviceName": "/dev/sda1", "Ebs" :{"VolumeSize":100, "SnapshotId":"snap-1-copy"}}]'
You can also copy your regional AMIs to Outposts using the copy-image
command. Specify the ID of the AMI to copy, the source Region, and the ARN of the destination Outpost.
$ aws ec2 copy-image \
--source-region us-west-2 \
--source-image-id ami-1234567890abcdef0 \
--name "Local AMI copy" \
--destination-outpost-arn arn:aws:outposts:us-west-2:123456789012:outpost/op-1a2b3c
Copying of local snapshots on Outposts to the parent AWS Region is not supported. In scenarios where data residency is required, you can only create local snapshots or copy snapshots from the parent Region. To ensure your data residency requirements are met on AWS Outposts, I recommend you refer to whitepapers such as AWS Policy Perspectives: Data Residency and Addressing Data Residency Requirements with AWS Outposts, and confirm and work closely with your compliance and security teams.
CloudEndure Migration and Disaster Recovery services, offered by AWS, allow customers to migrate or replicate workloads for recovery purposes into AWS from physical, virtual, or cloud-based sources. Up until now, if customers selected an Outposts device as a migration or recovery target, the snapshot data had to be copied to a public region before being copied back into the Outposts device. This led to increased cutover and recovery times, as well as other data transfer impacts.
With the newly launched availability of EBS Local Snapshots on Outposts, you can migrate, replicate and recover workloads from any sources directly into Outposts, or between Outposts devices, without requiring the EBS snapshot data to go through a public region, leading to lower latencies, greater performance, and reduced costs. Supported use cases related to Outposts for migration and disaster recovery include: from on-premises to Outposts, from public AWS Regions into Outposts, from Outposts into public AWS Regions, and between two Outposts devices. Learn more about CloudEndure Migration and CloudEndure Disaster Recovery.
Available Now
Amazon EBS Local Snapshots on AWS Outposts is available for all Outposts provisioned with S3 on Outposts. To learn more, take a look at the documentation. Please send feedback to the AWS Outposts team, your usual AWS support contacts, or Outposts partners.
Learn all the details about AWS Outposts and get started today.
— Channy