From a63799126e3bde05ac1d1ff6d71b034b4db76f18 Mon Sep 17 00:00:00 2001 From: J Cole Morrison Date: Tue, 28 Apr 2020 20:21:47 -0700 Subject: [PATCH] change health check to https --- ec2-load-balancer.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ec2-load-balancer.tf b/ec2-load-balancer.tf index 053cb2d..ec66e11 100644 --- a/ec2-load-balancer.tf +++ b/ec2-load-balancer.tf @@ -28,7 +28,7 @@ resource "aws_lb" "alb" { resource "aws_lb_target_group" "alb_targets" { name_prefix = "vault-" port = 8200 - protocol = "HTTP" + protocol = "HTTPS" vpc_id = aws_vpc.vault.id deregistration_delay = 30 target_type = "instance" @@ -37,7 +37,7 @@ resource "aws_lb_target_group" "alb_targets" { enabled = true interval = 10 path = "/v1/sys/health" // the Vault API health port - protocol = "HTTP" + protocol = "HTTPS" timeout = 5 healthy_threshold = 3 unhealthy_threshold = 3