Can't access webpage with fargate's ip?

0

I have implemented a web server on fargate.

Connection via elb DNS address worked fine.

If you look at the success, the security settings seem to be fine, but if I connect directly to the IP of the fargate task, the connection is not possible.

Is it not possible to connect to the original fargate's task ip? Or am I setting it up wrong?

2개 답변
1
수락된 답변

That should work, I would troubleshoot it in this order:

  1. Is the Fargate task in a public subnet? (If not, you need to be on a VPN)
  2. Are you testing with the public IP? (If not, you need to be on a VPN)
  3. Are you using the correct port? (ALB often reroutes from 443 to 80 after SSL resolution, if you bypass the ALB, you need to go straight to 80)
  4. Is the Security group open to your IP and port?

Good luck :)

profile picture
답변함 2년 전
profile pictureAWS
전문가
Toni_S
검토됨 2년 전
0

To use a static IP or Elastic IP with fargate tasks you must first create a Fargate service with an ALB or NLB and then attach the Elastic IP of the task to the load balancer.

profile pictureAWS
전문가
답변함 2년 전

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

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

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

관련 콘텐츠