Skip to content

Commit

Permalink
fix: matcher not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
angle319 committed Mar 21, 2024
1 parent f19729e commit 246f3a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ No modules.
| <a name="input_ecs_service_name"></a> [ecs\_service\_name](#input\_ecs\_service\_name) | n/a | `string` | `null` | no |
| <a name="input_ecs_task_name"></a> [ecs\_task\_name](#input\_ecs\_task\_name) | n/a | `string` | `null` | no |
| <a name="input_env"></a> [env](#input\_env) | n/a | `string` | n/a | yes |
| <a name="input_health_check"></a> [health\_check](#input\_health\_check) | Health checks for Target Group | `map(any)` | <pre>{<br> "healthy_threshold": "5",<br> "interval": "30",<br> "path": "/",<br> "protocol": "HTTP",<br> "timeout": "5",<br> "unhealthy_threshold": "2"<br>}</pre> | no |
| <a name="input_health_check"></a> [health\_check](#input\_health\_check) | Health checks for Target Group | `map(any)` | <pre>{<br> "healthy_threshold": "5",<br> "interval": "30",<br> "matcher": "200",<br> "path": "/",<br> "protocol": "HTTP",<br> "timeout": "5",<br> "unhealthy_threshold": "2"<br>}</pre> | no |
| <a name="input_https_listener_rules"></a> [https\_listener\_rules](#input\_https\_listener\_rules) | A list of maps describing the Listener Rules for this ALB. Required key/values: actions, conditions. Optional key/values: priority, https\_listener\_index (default to https\_listeners[count.index]) | `any` | `[]` | no |
| <a name="input_is_default_tg"></a> [is\_default\_tg](#input\_is\_default\_tg) | n/a | `bool` | `false` | no |
| <a name="input_is_log"></a> [is\_log](#input\_is\_log) | container auto aws driver with log | `bool` | `true` | no |
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ locals {
unhealthy_threshold = "2"
interval = "30"
timeout = "5"
matcher = "200"
protocol = "HTTP"
}, var.health_check)
container_definitions = jsonencode(var.task_def)
Expand Down Expand Up @@ -103,6 +104,7 @@ resource "aws_alb_target_group" "this" {
interval = local.health_check["interval"]
timeout = local.health_check["timeout"]
protocol = local.health_check["protocol"]
matcher = local.health_check["matcher"]
}
}
dynamic "stickiness" {
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ variable "health_check" {
interval = "30"
timeout = "5"
protocol = "HTTP"
matcher = "200"
}
}
variable "https_listener_rules" {
Expand Down

0 comments on commit 246f3a1

Please sign in to comment.