{"action":"created","issue":{"url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/59","labels_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/59/comments","events_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/59/events","html_url":"https://github.com/aws/amazon-ecs-agent/issues/59","id":72197299,"number":59,"title":"Can't Get Hostname/IP Where Task Is Running","user":{"login":"jeprojects","id":11989601,"avatar_url":"https://avatars.githubusercontent.com/u/11989601?v=3","gravatar_id":"","url":"https://api.github.com/users/jeprojects","html_url":"https://github.com/jeprojects","followers_url":"https://api.github.com/users/jeprojects/followers","following_url":"https://api.github.com/users/jeprojects/following{/other_user}","gists_url":"https://api.github.com/users/jeprojects/gists{/gist_id}","starred_url":"https://api.github.com/users/jeprojects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeprojects/subscriptions","organizations_url":"https://api.github.com/users/jeprojects/orgs","repos_url":"https://api.github.com/users/jeprojects/repos","events_url":"https://api.github.com/users/jeprojects/events{/privacy}","received_events_url":"https://api.github.com/users/jeprojects/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-30T15:35:53Z","updated_at":"2015-05-08T21:57:06Z","closed_at":"2015-05-08T21:57:06Z","body":"I have tried most of the resources from this page: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ECS.html#listContainerInstances-property\r\n\r\nAnd I can get the automatically generated port for my application running on docker, but I can't get the IP/AWS host on where it is running (the individual ec2 instance in the cluster)\r\n\r\nI just get this information: { bindIP: '0.0.0.0', containerPort: 4444, hostPort: 49166 }"},"comment":{"url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/comments/100378471","html_url":"https://github.com/aws/amazon-ecs-agent/issues/59#issuecomment-100378471","issue_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/59","id":100378471,"user":{"login":"euank","id":2147649,"avatar_url":"https://avatars.githubusercontent.com/u/2147649?v=3","gravatar_id":"","url":"https://api.github.com/users/euank","html_url":"https://github.com/euank","followers_url":"https://api.github.com/users/euank/followers","following_url":"https://api.github.com/users/euank/following{/other_user}","gists_url":"https://api.github.com/users/euank/gists{/gist_id}","starred_url":"https://api.github.com/users/euank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euank/subscriptions","organizations_url":"https://api.github.com/users/euank/orgs","repos_url":"https://api.github.com/users/euank/repos","events_url":"https://api.github.com/users/euank/events{/privacy}","received_events_url":"https://api.github.com/users/euank/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T21:57:06Z","updated_at":"2015-05-08T21:57:06Z","body":"Per my comment above, you should be able to discover the IP of a task. This is also more of an API question than an Agent question and might fit better in the forums.\r\n\r\nIf you have further questions/issues we'd be happy to help."}}