Skip to content

Commit

Permalink
tf/service: add health_check_path variable
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 19, 2023
1 parent 2a443ee commit 083efb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/tf/alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "aws_lb_target_group" "app" {

health_check {
enabled = true
path = "/"
path = var.health_check_path
}
}

Expand Down
6 changes: 6 additions & 0 deletions deploy/tf/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ variable "environment" {
type = string
}

variable "health_check_path" {
description = "The health check path for the ALB target group."
type = string
default = "/health"
}

variable "iam_statements" {
description = "List of IAM statements to attach to the task role"
type = any
Expand Down

0 comments on commit 083efb7

Please sign in to comment.