Hello. I am attempting to setup the ECS hello world example and have a few questions about the task definition. Here
There are a few lines that I am struggling to understand. Mostly:
"command": [ "LOCAL_IP=$(curl http://169.254.169.254/latest/meta-data/local-ipv4) http_proxy=$LOCAL_IP:4140 POD_IP=$LOCAL_IP helloworld -addr=:1234 -text=Hello -target=world" ],
Is there explanation of this command anywhere? I’m also wondering what POD_IP is doing?
I would like to understand the setup in the task definitions as well the necessary dtabs config to get this working. I am attempting to setup in a env with linkerd / namerd / consul. Currently consul can see the services running ( hello, world, world_v2 ) but I am unable to connect to them via:
http_proxy=$SERVER_IP:4140 curl hello Unknown destination: Request("GET /", from /x.x.x.x:50340) / not enough segments in path
From this error message I know i need to edit my internal dtabs config which is currently:
# Do not modify these! /consul => /#/io.l5d.consul/.local; /env => /consul/myTestEnv; /namerd-admin => /$/inet/127.0.0.1/9991; # These are for specific deployment types /blue => /consul/blue; /green => /consul/green; # These are the services that are deployed
Does anyone have any insight on how to set this up? Have been looking for an article to give some insight but so far nothing is sticking. Any insight or reference to helpful articles would be greatly appreciated. Thanks.