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

Commit

Permalink
Merge pull request #79 from danisla/disable-autohealing
Browse files Browse the repository at this point in the history
disable autohealing by default
  • Loading branch information
danisla authored Aug 16, 2018
2 parents e0bc7c6 + 8dc7cf8 commit d4d4c71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ 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"
update_strategy = "ROLLING_UPDATE"

rolling_update_policy = [{
type = "PROACTIVE"
Expand Down
5 changes: 5 additions & 0 deletions 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

0 comments on commit d4d4c71

Please sign in to comment.