hashicorp/terraform-aws-consul-ecs

Consul Client Command Incompatible with Fargate

reskin89 opened this issue · 1 comments

Currently:

ECS_IPV4=$(curl -s $ECS_CONTAINER_METADATA_URI | jq -r '.Networks[0].IPv4Addresses[0]')

The Consul Client Command template does a curl against ECS_CONTAINER_METADATA_URI, Fargate now uses ECS_CONTAINER_METADATA_URI_V4 which the consul-ecs binary in the ecs container looks for, but the client command does not.

This makes the module incompatible with fargate.

Hi @reskin89!

We actually have acceptance tests which run on Fargate, so we know this works (or has worked, at least, when they last ran).

Are you seeing an error using ECS_CONTAINER_METADATA_URI in Fargate?