diff --git a/modules/vault-cluster/main.tf b/modules/vault-cluster/main.tf index 55ad08a8..2d6ded49 100644 --- a/modules/vault-cluster/main.tf +++ b/modules/vault-cluster/main.tf @@ -137,6 +137,7 @@ resource "aws_launch_configuration" "launch_configuration" { volume_type = var.root_volume_type volume_size = var.root_volume_size delete_on_termination = var.root_volume_delete_on_termination + encrypted = var.root_volume_encrypted } # Important note: whenever using a launch configuration with an auto scaling group, you must set diff --git a/modules/vault-cluster/variables.tf b/modules/vault-cluster/variables.tf index 5d2276d0..5fa1d1ed 100644 --- a/modules/vault-cluster/variables.tf +++ b/modules/vault-cluster/variables.tf @@ -152,6 +152,12 @@ variable "root_volume_delete_on_termination" { default = true } +variable "root_volume_encrypted" { + description = "Encrypt the volume at rest" + type = bool + default = false +} + variable "wait_for_capacity_timeout" { description = "A maximum duration that Terraform should wait for ASG instances to be healthy before timing out. Setting this to '0' causes Terraform to skip all Capacity Waiting behavior." default = "10m" @@ -235,4 +241,4 @@ variable "dynamo_table_region" { description = "Table region used for the instance policy. Uses the current region if not supplied. Global tables should use `*` to allow for a cross region deployment to write to their respective table" type = string default = "" -} \ No newline at end of file +}