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 Antworten
1
Akzeptierte Antwort

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
beantwortet vor 2 Jahren
profile pictureAWS
EXPERTE
Toni_S
überprüft vor 2 Jahren
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
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen