Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update encrypted root device and additional EBS volume
  • Loading branch information
Mirko Pluhar committed Nov 9, 2020
commit 58b66e7bede06c03216a920a78e9ea0e4bd95ec9
4 changes: 2 additions & 2 deletions modules/consul-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ resource "aws_launch_configuration" "launch_configuration" {
volume_size = lookup(ebs_block_device.value, "volume_size", null)
volume_type = lookup(ebs_block_device.value, "volume_type", null)
}
}
}

# Important note: whenever using a launch configuration with an auto scaling group, you must set
# create_before_destroy = true. However, as soon as you set create_before_destroy = true in one resource, you must
# also set it in every resource that it depends on, or you'll get an error about cyclic dependencies (especially when
Expand Down
3 changes: 2 additions & 1 deletion modules/consul-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,12 @@ variable "root_volume_delete_on_termination" {

variable "root_volume_encrypted" {
description = "Encrypt the volume at rest"
type = bool
default = false
}

variable "ebs_block_device" {
description = "Additional EBS block devices to attach to autoscaling instances"
description = "Additional EBS block devices to attach to autoscaling instances"
type = list(map(string))
default = []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment with an example of the value you can set this too.

}
Expand Down