Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
disable autohealing by default
Browse files Browse the repository at this point in the history
  • Loading branch information
danisla committed Aug 16, 2018
1 parent e0bc7c6 commit 51ce734
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module "nat-gateway" {
wait_for_instances = true
metadata = "${var.metadata}"
ssh_source_ranges = "${var.ssh_source_ranges}"
http_health_check = "${var.autohealing_enabled}"

update_strategy = "ROLLING_UPDATE"

Expand Down
7 changes: 6 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ variable instance_labels {
default = {}
}

variable autohealing_enabled {
description = "Enable instance autohealing using http health check"
default = false
}

variable region_params {
description = "Map of default zones and IPs for each region. Can be overridden using the `zone` and `ip` variables."
type = "map"
Expand Down Expand Up @@ -190,4 +195,4 @@ variable region_params {
variable "dest_range" {
description = "The destination IPv4 address range that this route applies to"
default = "0.0.0.0/0"
}
}

0 comments on commit 51ce734

Please sign in to comment.