Skip to content

Files

Latest commit

 

History

History
38 lines (25 loc) · 1.08 KB

aws-ec2-enable-launch-config-at-rest-encryption.md

File metadata and controls

38 lines (25 loc) · 1.08 KB

Pattern: Disabled at-rest encryption for AWS EC2 launch config

Issue: -

Description

Block devices should be encrypted to ensure sensitive data is held securely at rest.

Resolution: Turn on encryption for all block devices.

Examples

The following example will fail the aws-ec2-enable-launch-config-at-rest-encryption check.

 resource "aws_launch_configuration" "bad_example" {
 	root_block_device {
 		encrypted = false
 	}
 }
 

The following example will pass the aws-ec2-enable-launch-config-at-rest-encryption check.

 resource "aws_launch_configuration" "good_example" {
 	root_block_device {
 		encrypted = true
 	}
 }
 

Further reading