From 26df0468b6581ca00c39a5c2bc7a57ffcb6e6645 Mon Sep 17 00:00:00 2001 From: Simone Ruffilli Date: Sun, 27 Feb 2022 10:57:21 +0100 Subject: [PATCH] Adds autohealing to NVA MIGs --- fast/stages/02-networking-nva/nva.tf | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/fast/stages/02-networking-nva/nva.tf b/fast/stages/02-networking-nva/nva.tf index 64305e2c..1bbc7f81 100644 --- a/fast/stages/02-networking-nva/nva.tf +++ b/fast/stages/02-networking-nva/nva.tf @@ -84,8 +84,18 @@ module "nva-mig-ew1" { project_id = module.landing-project.project_id regional = true location = "europe-west1" - name = "nva" + name = "nva-ew1" target_size = 2 + auto_healing_policies = { + health_check = module.nva-mig-ew1.health_check.self_link + initial_delay_sec = 30 + } + health_check_config = { + type = "tcp" + check = { port = 22 } + config = {} + logging = true + } default_version = { instance_template = module.nva-template-ew1.template.self_link name = "default" @@ -182,8 +192,18 @@ module "nva-mig-ew4" { project_id = module.landing-project.project_id regional = true location = "europe-west4" - name = "nva" + name = "nva-ew4" target_size = 2 + auto_healing_policies = { + health_check = module.nva-mig-ew4.health_check.self_link + initial_delay_sec = 30 + } + health_check_config = { + type = "tcp" + check = { port = 22 } + config = {} + logging = true + } default_version = { instance_template = module.nva-template-ew4.template.self_link name = "default"