Skip to content

Commit

Permalink
feat: Enable root EBS volume encryption (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcvetta authored May 16, 2023
1 parent 4def86a commit b5b3135
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ resource "aws_launch_configuration" "this" {

security_groups = [aws_security_group.this.id]

root_block_device {
encrypted = true
}

user_data = templatefile("${path.module}/user_data.sh.tmpl", {
aws_region = local.region
bucket_name = aws_s3_bucket.this.bucket
Expand Down

0 comments on commit b5b3135

Please sign in to comment.