amazon-ecs-agent icon indicating copy to clipboard operation
amazon-ecs-agent copied to clipboard

ECS unlisted endpoint?

Open RGuilfoyle opened this issue 9 years ago • 2 comments

I have ECS running in a relatively locked down VPC in which I have to whitelist URLs.

I have whitelisted the ECS api endpoint (ecs.eu-west-1.amazonaws.com) according to http://docs.aws.amazon.com/general/latest/gr/rande.html#ecs_region.

I am not seeing errors accessing ecs-t-1.eu-west-1.amazonaws.com.

The IP is in the same subnet as the "correct" API endpoint, but is not listed, is this an error in the agent or in the documentation?

Thanks

RGuilfoyle avatar Aug 17 '17 14:08 RGuilfoyle

@RGuilfoyle Are you mean you see the error for "ecs-t-1.eu-west-1.amazonaws.com" or you are not?

This endpoint along with ecs-a-x.eu-west-1.amazonaws.com are the endpoints used by ecs-agent to communicate to our backend. See details here. So if you want the ecs-agent to work, you need to whitelist these two endpoints too. Also the two urls returned by the discover-poll-endpoint are not unique, you may want to use regular expression to whitelist them something like ecs-x(a/t)-xx(endpoint number).xxx(region).amazonaws.com.

Thanks, Peng

richardpen avatar Aug 17 '17 18:08 richardpen

@RGuilfoyle I'm going to close this for now, feel free to reopen if you have any further questions.

richardpen avatar Sep 12 '17 20:09 richardpen