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 Answers
1
Accepted Answer

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
answered 2 years ago
profile pictureAWS
EXPERT
Toni_S
reviewed 2 years ago
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
EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions