Set up for Amazon EBS
Complete the tasks in this section to get set up for working with Amazon EBS resources.
Sign up for an AWS account
To get started with AWS, you need an AWS account. For information about creating an AWS account, see
Getting started with an AWS account
in the AWS Account Management Reference Guide.
(Optional) Create and use a customer managed key for Amazon EBS encryption
Amazon EBS encryption is an encryption solution that uses AWS KMS cryptographic keys to encrypt your
Amazon EBS volumes and Amazon EBS snapshots. Amazon EBS automatically creates a unique AWS managed KMS key
for Amazon EBS encryption in each Region. This KMS key has the alias aws/ebs. You can't
rotate the default KMS key or manage its permissions. For more flexibility and control over
the KMS key used for Amazon EBS encryption, you might consider creating and using a customer managed key.
(Optional) Enable block public access for Amazon EBS snapshots
To prevent public sharing of your snapshots, you can enable block public access for snapshots.
After you enable block public access for snapshots in a Region, any attempt to publicly share
snapshots in that Region is automatically blocked. This can help you to improve the security of
your snapshots and to protect your snapshot data from unauthorized or unintended access.
For more information, see Block public access for Amazon EBS snapshots.
- Console
-
To enable block public access for snapshots
-
Open the Amazon EC2 console at
https://console.aws.amazon.com/ec2/.
-
In the navigation pane, choose EC2 Dashboard, and then in
Account attributes (on the right-hand side), choose
Data protection and security.
-
In the Block public access for EBS snapshots section, choose
Manage.
-
Select Block public access and then choose one of the
following options:
-
Block all public access — To block all public sharing of your
snapshots. Users in the account can't request new public sharing. Additionally, snapshots that
were already publicly shared are treated as private and are no longer publicly available.
-
Block new public sharing — To block only new public sharing of
your snapshots. Users in the account can't request new public sharing. However, snapshots that
were already publicly shared, remain publicly available.
-
Choose Update.
- AWS CLI
-
To enable block public access for snapshots
Use the enable-snapshot-block-public-access
command. For --state specify one of the following values:
-
block-all-sharing — To block all public sharing of your
snapshots. Users in the account can't request new public sharing. Additionally, snapshots that
were already publicly shared are treated as private and are no longer publicly available.
-
block-new-sharing — To block only new public sharing of
your snapshots. Users in the account can't request new public sharing. However, snapshots that
were already publicly shared, remain publicly available.
aws ec2 enable-snapshot-block-public-access --state block-new-sharing
- PowerShell
-
To enable block public access for snapshots
Use the Enable-EC2SnapshotBlockPublicAccess cmdlet. For -State specify one of the following values:
-
block-all-sharing — To block all public sharing of your
snapshots. Users in the account can't request new public sharing. Additionally, snapshots that
were already publicly shared are treated as private and are no longer publicly available.
-
block-new-sharing — To block only new public sharing of
your snapshots. Users in the account can't request new public sharing. However, snapshots that
were already publicly shared, remain publicly available.
Enable-EC2SnapshotBlockPublicAccess -State block-new-sharing