1. 程式人生 > >New – Cross-Account Copying of Encrypted EBS Snapshots

New – Cross-Account Copying of Encrypted EBS Snapshots

AWS already supports the use of encrypted Amazon Elastic Block Store (EBS) volumes and snapshots, with keys stored in and managed by AWS Key Management Service (KMS). It also supports copying of EBS snapshots with other AWS accounts so that they can be used to create new volumes. Today we are joining these features to give you the ability to copy encrypted EBS snapshots between accounts, with the flexibility to move between AWS regions as you do so.

This announcement builds on three important AWS best practices:

  1. Take regular backups of your EBS volumes.
  2. Use multiple AWS accounts, one per environment (dev, test, staging, and prod).
  3. Encrypt stored data (data at rest), including backups.

Encrypted EBS Volumes & Snapshots


As a review, you can create an encryption key using the IAM Console:

And you can create an encrypted EBS volume by specifying an encryption key (you must use a custom key if you want to copy a snapshot to another account):

Then you can create an encrypted snapshot from the volume:

As you can see, I have already enabled the longer volume and snapshot IDs for my AWS account (read They’re Here – Longer EBS and Storage Gateway Resource IDs Now Available for more information).

Cross-Account Copying
None of what I have shown you so far is new. Let’s move on to the new part! To create a copy of the encrypted EBS snapshot in another account you need to complete four simple steps:

  1. Share the custom key associated with the snapshot with the target account.
  2. Share the encrypted EBS snapshot with the target account.
  3. In the context of the target account, locate the shared snapshot and make a copy of it.
  4. Use the newly created copy to create a new volume.

You will need the target account number in order to perform the first two steps. Here’s how you share the custom key with the target account from within the IAM Console:

Then you share the encrypted EBS snapshot. Select it and click on Modify Permissions:

Enter the target account number again and click on Save:

Note that you cannot share the encrypted snapshots publicly.

Before going any further I should say a bit about permissions! Here’s what you need to know in order to set up your policies and/or roles:

Source Account – The IAM user or role in the source account needs to be able to call the ModifySnapshotAttribute function and to perform the DescribeKey and ReEncypt operations on the key associated with the original snapshot.

Target Account – The IAM user or role in the target account needs to be able perform the DescribeKey, CreateGrant, and Decrypt operations on the key associated with the original snapshot. The user or role must also be able to perform the CreateGrant, Encrypt, Decrypt, DescribeKey, and operations on the key associated with the call to CopySnapshot.

With that out of the way, let’s copy the snapshot…

Switch to the target account, visit the Snapshots tab, and click on Private Snapshots. Locate the shared snapshot via its Snapshot ID (the name is stored as a tag and is not copied), select it, and choose the Copy action:

Select an encryption key for the copy of the snapshot and create the copy (here I am copying my snapshot to the Asia Pacific (Tokyo) Region):

Using a new key for the copy provides an additional level of isolation between the two accounts. As part of the copy operation, the data will be re-encrypted using the new key.

Available Now
This feature is available in all AWS Regions where AWS Key Management Service (KMS) is available. It is designed for use with data & root volumes and works with all volume types, but cannot be used to share encrypted AMIs at this time. You can use the snapshot to create an encrypted boot volume by copying the snapshot and then registering it as a new image.

Jeff;

相關推薦

NewCross-Account Copying of Encrypted EBS Snapshots

AWS already supports the use of encrypted Amazon Elastic Block Store (EBS) volumes and snapshots, with keys stored in and managed by AWS Key Manag

New – Cost Allocation for EBS Snapshots

Amazon Elastic Block Store (EBS) allows you to create persistent block storage volumes for your Amazon EC2 instances. The volumes offer consistent

AT NEW 和 AT END OF 的用法

全部 構造 出現 記錄 end 裏的 ol3 決策 賦值 第一條記錄:col1=’1000’,col2=’AAA1’,col3=1 第二條記錄:col1=’1000’,col2=’AAA2’,col3=2 第三條記錄:col1=’2000’,col2=’AAA2’,col3

Distributed Electric Propulsion May Usher in a New Er edm a of Flight

www.inhandnetworks.com NASA and its commercial partners are adapting a standard model private aircraft, the Tecnam P2006T, to be powered by mult

A robust self-learning method for fully unsupervised cross-lingual mappings of word embeddings論文筆記

回看前幾篇筆記發現我剪貼的公式顯示很亂,雖然編輯時調整過了,但是不知道為什麼顯示的和編輯時的不一樣,為方便大家的閱讀,我開始嘗試著採用markdown的形式寫筆記,前幾篇有時間的話再修改。 這篇論文閱讀完,我依然有很多不懂的地方,對其操作不是很清晰,因為我沒做過這方面的內容,且近期估計

49_以太坊啟動瘋狂列印Setting new local account address=0xxx

今天有個節點區塊高度過低了,於是準備重啟下服務。 重啟後,日誌瘋狂列印: 而且控制檯連線不上: geth attach geth.ipc Fatal: Unable to attach to remote geth: dial unix geth.ipc: conn

GitHub logged me out of my account because of "password reuse"

>If you are using a known-compromised password found in the HaveIBeenPwned.com database, you will be prompted to change your password after login or any

New Go Community Code of Conduct GopherAcademy

In November 2015, Google introduced the Go Code of Conduct (CoC) and as the leading Go language conference, it was importa

Shallow vs Deep Copying of Python Objects – Real Python

Assignment statements in Python do not create copies of objects, they only bind names to an object. For immutable objects, that usually doesn’t make a d

New feature: self-installation of SSL certificates!

Our system update last week added on an API to let you install HTTP certificates yourself instead of having to email us. We've been beta-testing it

New paper: "Categorizing variants of Goodhart's Law"

Goodhart’s Law states that “any observed statistical regularity will tend to collapse once pressure is placed upon it for control purposes.

Create cross-account and cross-region AWS Glue connections

AWS Glue is a fully managed extract, transform, and load (ETL) service that makes it easy to prepare and load data for analytics. AWS Glue uses co

Using Volume Gateway, Clones and EBS Snapshots for Recovery

This AWS Knowledge Center video answers the common question of how to perform recoveries of Volume Gateway volumes. There are multiple options ava

AWS Case Study: New York City Department of Transportation

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

NewCross-Region Replication for Amazon S3

We launched Amazon S3 nine years ago as of last week! Since that time we have added dozens of features, expanded across the globe, and red

3.1.7. Cross validation of time series data

distrib per ted sklearn provided imp depend util ech 3.1.7. Cross validation of time series data Time series data is characterised by the

Geometric regularity criterion for NSE: the cross product of velocity and vorticity 1: $v imes om$

math blog lar suitable don table pro 證明 uitable 在 [Chae, Dongho. On the regularity conditions of suitable weak solutions of the 3D Navier

New York is 3 hours ahead of California

ood img see 技術 out ear before 分享 time New York is 3 hours ahead of California,but it does not make California slow.Someone graduated at