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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南