turbot/aws_compliance

Control: 2.1.2 Ensure Images (AMI's) are encrypted

Description

Amazon Machine Images should utilize EBS Encrypted snapshots.

AMIs backed by EBS snapshots should use EBS encryption. Snapshot volumes can be encrypted and attached to an AMI.

Remediation

Perform the following to encrypt AMI EBS Snapshots:

From Console:

  1. Login to the EC2 console at https://console.aws.amazon.com/ec2/.
  2. In the left pane click on AMIs.
  3. Select the AMI that does not comply to the encryption policy.
  4. Click on Actions.
  5. Click on Copy AMI.
Destination region - `Select the region the AMI is in`.
Name - `Enter the new Name`
Description - `Enter the new description`
Encryption - `Select` Encrypt target EBS snapshots
  1. Click on Copy AMI.
Once the AMI has finished copying.
  1. Select the AMI that does not have encrypted EBS snapshots.
  2. Click on Actions.
  3. Click on Deregister

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.cis_compute_service_v100_2_1_2

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.cis_compute_service_v100_2_1_2 --share

SQL

This control uses a named query:

ec2_ami_ebs_encryption_enabled

Tags