Description
An encrypted EBS volume created without KmsKeyId uses the Region’s default EBS key, which can itself be a customer managed key.
Potential impact
The default key’s policy may fall short of the volume’s access or audit requirements.
Remediation
If a specific key is required, select one in the same Region and verify key access. For an existing volume, pause writes, take a final snapshot and copy it under the new key. Set SnapshotId on a separate destination volume in the required Availability Zone. Keep the original until you verify the data and key on the new volume.
Examples
Both examples create an encrypted volume in us-west-1a. In the second, MyKmsKey must refer to a key defined separately in that Region.
Before
yaml
Resources:
DataVolume:
Type: AWS::EC2::Volume
Properties:
Size: 100
Encrypted: true
AvailabilityZone: us-west-1a
After
yaml
Resources:
DataVolume:
Type: AWS::EC2::Volume
Properties:
Size: 100
Encrypted: true
AvailabilityZone: us-west-1a
KmsKeyId: !Ref MyKmsKey