Client VPN + Local docker-compose amazon-ecs-local-container-endpoints 169.254.170 being routed through VPN

0

I followed this guide to set up a local dev env with Docker-compose + local IAM auth. Additionally, I am trying to connect to a resource inside our VPC using the AWS client VPN (split tunnel mode).

When running each of these individually, there are no issues. However, when combining them, the requests being made to the local ECS endpoint for auth (169.254.170/24) is being redirected through the VPN and failing to pull back valid creds.

Is it possible to keep all 169.254.170/24 traffic local? Is it possible to use a different ip range for the local container?

질문됨 2년 전892회 조회
1개 답변
0

It appears that you are having a problem configuring your Docker Compose. You may find that your problem is not configuring each container with a unique IP address. The IP for the local ECS endpoint should be 169.254.170.2. You should refer to the link to help configure your endpoints.

https://aws.amazon.com/blogs/compute/a-guide-to-locally-testing-containers-with-amazon-ecs-local-endpoints-and-docker-compose/

Additionally, here is a link to a site that discusses Amazon ECS Local Container Endpoints:

https://github.com/awslabs/amazon-ecs-local-container-endpoints

If you encounter further errors, please reach out to premium support. Cheers!

Josh_F
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인