Skip to content

Commit

Permalink
Move health check path to var
Browse files Browse the repository at this point in the history
  • Loading branch information
qbart committed May 17, 2021
1 parent 22ce0f9 commit dc3d0d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ecs-service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ resource "aws_alb_target_group" "this" {
deregistration_delay = 30 # draining time

health_check {
path = "/healthcheck"
path = var.health_check_path
protocol = "HTTP"
timeout = 10
interval = 15
Expand Down
6 changes: 6 additions & 0 deletions modules/ecs-service/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@ variable "tags" {
description = "Additional tags attached to resources."
default = {}
}

variable "health_check_path" {
type = string
description = "Healt check path for ALB target group."
default = "/healthcheck"
}

0 comments on commit dc3d0d9

Please sign in to comment.