change health check to https
This commit is contained in:
parent
6b71f8b09f
commit
a63799126e
|
@ -28,7 +28,7 @@ resource "aws_lb" "alb" {
|
||||||
resource "aws_lb_target_group" "alb_targets" {
|
resource "aws_lb_target_group" "alb_targets" {
|
||||||
name_prefix = "vault-"
|
name_prefix = "vault-"
|
||||||
port = 8200
|
port = 8200
|
||||||
protocol = "HTTP"
|
protocol = "HTTPS"
|
||||||
vpc_id = aws_vpc.vault.id
|
vpc_id = aws_vpc.vault.id
|
||||||
deregistration_delay = 30
|
deregistration_delay = 30
|
||||||
target_type = "instance"
|
target_type = "instance"
|
||||||
|
@ -37,7 +37,7 @@ resource "aws_lb_target_group" "alb_targets" {
|
||||||
enabled = true
|
enabled = true
|
||||||
interval = 10
|
interval = 10
|
||||||
path = "/v1/sys/health" // the Vault API health port
|
path = "/v1/sys/health" // the Vault API health port
|
||||||
protocol = "HTTP"
|
protocol = "HTTPS"
|
||||||
timeout = 5
|
timeout = 5
|
||||||
healthy_threshold = 3
|
healthy_threshold = 3
|
||||||
unhealthy_threshold = 3
|
unhealthy_threshold = 3
|
||||||
|
|
Loading…
Reference in New Issue