EBS volume snapshot should not be publicly shared

Description

Secure Amazon Elastic Block Store (EBS) snapshots.

Rationale

Publicly shared Amazon EBS volume snapshots contain sensitive application data that can be seen, copied, and exploited.

Remediation

From the console

Follow the AWS Share a snapshot documentation to learn how to modify snapshot sharing for both the console and the command line.

From the command line

  1. Enter the following command with your snapshot ID to remove global sharing.

     aws ec2 modify-snapshot-attribute \
        --snapshot-id 1234567890abcdef0 \
        --attribute createVolumePermission \
        --operation-type remove \
        --group-names all
    
  2. Run the follow command with your snapshot ID to share a snapshot with a specific user ID.

     aws ec2 modify-snapshot-attribute \
         --snapshot-id 1234567890abcdef0 \ 
         --attribute createVolumePermission \
         --operation-type add \
         --user-ids 123456789012
    
PREVIEWING: antoine.dussault/service-representation-ga-docs-us1