Skip to content

Commit

Permalink
Fix health check command for mesh and gateway task submodules (#241)
Browse files Browse the repository at this point in the history
* Fix health check command for mesh and gateway task submodules

* Added changelog

* Address comment
  • Loading branch information
Ganeshrockz authored Dec 18, 2023
1 parent fe72d59 commit 713038f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ FEATURES
* examples/api-gateway: Add example terraform to demonstrate exposing mesh tasks in ECS via Consul API gateway deployed as an ECS task. [[GH-235]](https://github.com/hashicorp/terraform-aws-consul-ecs/pull/235)
* examples/terminating-gateway: Add example terraform to demonstrate the use of terminating gateways deployed as ECS tasks to facilitate communication between mesh and non mesh services. [[GH-238]](https://github.com/hashicorp/terraform-aws-consul-ecs/pull/238)

BUG FIXES
* Fixes a bug in the health check logic of the `consul-ecs-control-plane` container in `mesh-task` and `gateway-task` submodule. Because of the bug, the ECS agent tries to start up the `consul-dataplane` container before the `consul-ecs-control-plane` container writes the Consul ECS binary to a shared volume. [[GH-241]](https://github.com/hashicorp/terraform-aws-consul-ecs/pull/241)

## 0.7.0 (Nov 8, 2023)

BREAKING CHANGES
Expand Down
2 changes: 1 addition & 1 deletion modules/gateway-task/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ resource "aws_ecs_task_definition" "this" {
initProcessEnabled = true
}
healthCheck = {
command = ["CMD-SHELL", "curl localhost:10000/consul-ecs/health"] # consul-ecs-control-plane exposes a listener on 10000 to indicate it's readiness
command = ["CMD-SHELL", "curl -f localhost:10000/consul-ecs/health"] # consul-ecs-control-plane exposes a listener on 10000 to indicate it's readiness
interval = 30
retries = 10
timeout = 5
Expand Down
2 changes: 1 addition & 1 deletion modules/mesh-task/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ resource "aws_ecs_task_definition" "this" {
initProcessEnabled = true
}
healthCheck = {
command = ["CMD-SHELL", "curl localhost:10000/consul-ecs/health"] # consul-ecs-control-plane exposes a listener on 10000 to indicate it's readiness
command = ["CMD-SHELL", "curl -f localhost:10000/consul-ecs/health"] # consul-ecs-control-plane exposes a listener on 10000 to indicate it's readiness
interval = 30
retries = 10
timeout = 5
Expand Down

0 comments on commit 713038f

Please sign in to comment.