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 14, 2018
1 parent 1e333e8 commit 13165b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module "nat-gateway" {
wait_for_instances = true
metadata = "${var.metadata}"
ssh_source_ranges = "${var.ssh_source_ranges}"
http_health_check = "${var.autohealing_enabled}"

access_config = [
{
Expand Down
15 changes: 10 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ variable instance_labels {
default = {}
}

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

variable "dest_range" {
description = "The destination IPv4 address range that this route applies to"
default = "0.0.0.0/0"
}

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 @@ -186,8 +196,3 @@ 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 13165b7

Please sign in to comment.