Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Add option to encrypt root volume at rest #226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/vault-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion modules/vault-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 = ""
}
}