Skip to content

Files

Latest commit

 

History

History
46 lines (31 loc) · 1.15 KB

aws-ec2-enable-volume-encryption.md

File metadata and controls

46 lines (31 loc) · 1.15 KB

Pattern: Disabled encryption for AWS EBS volume

Issue: -

Description

By enabling encryption on EBS volumes you protect the volume, the disk I/O and any derived snapshots from compromise if intercepted.

Resolution: Enable encryption of EBS volumes.

Examples

The following example will fail the aws-ec2-enable-volume-encryption check.

 resource "aws_ebs_volume" "bad_example" {
   availability_zone = "us-west-2a"
   size              = 40
 
   tags = {
     Name = "HelloWorld"
   }
   encrypted = false
 }
 

The following example will pass the aws-ec2-enable-volume-encryption check.

 resource "aws_ebs_volume" "good_example" {
   availability_zone = "us-west-2a"
   size              = 40
 
   tags = {
     Name = "HelloWorld"
   }
   encrypted = true
 }
 

Further reading