All checks
Medium EC2 · regional

EC2 launch templates should enable encryption for attached EBS volumes

Checks that the launch template's default version does not set encryption off for any EBS volume, so instances launched from it get encrypted volumes. Other versions are not read, nor are volumes that leave encryption unset; those follow EBS encryption by default (EC2.7) or the AMI snapshot.

service
EC2
severity
Medium
scope
evaluated in every region

How to fix it

  • Affects another check: Instances already launched from the template keep their unencrypted volumes, so EC2.3 still fails on each one until it is replaced.

In the console

  • Replaces the resource: A launch template version cannot be edited: create a new version with encryption on, then make it the default (Actions → Set default version), the only version this check reads.

EC2 → Launch Templates → the template → Actions → Modify template (Create new version) → Storage (volumes)

Encrypted
Yes, on every EBS volume the template defines

With Terraform

resource "aws_launch_template" "this" {
  update_default_version = true
  block_device_mappings {
    device_name = "/dev/xvda"
    ebs {
      encrypted = "true"
    }
  }
}

See which of your accounts this check is failing on.

Book a live scan