I've created a Fargate task that has a web server container. The task has an eni which appears to have a public IP. The container definition for the web server has port mapping for port 443. But when I inspect the container, network bindings are not configured. And I cannot access the web server using the public IP address. What am I missing?
3
- Have you validate you're in a public subnet? And checked the container definitions are using the port mapping for the correct containerChris Williams– Chris Williams2020-10-29 17:49:00 +00:00Commented Oct 29, 2020 at 17:49
- 3Yes to both of those. And I found the problem, I had not set the proper inbound rules on the security group associated with the ENIchuck1– chuck12020-10-30 18:02:22 +00:00Commented Oct 30, 2020 at 18:02
- 1Glad you solved it, have a great weekend :DChris Williams– Chris Williams2020-10-30 18:11:13 +00:00Commented Oct 30, 2020 at 18:11
Add a comment |
1 Answer
I needed to add the proper inbound rules for the security group associated with the ENI
4 Comments
Yasin Eraslan
what did you exactly do, I have the same problem...
gaut
this fixed it for me. from the tasks details, click on the ENI details and edit your inbound rules
dotnetcoder
Thanks a lot! this was the issue. I added a new rule to the security group to allow inbound traffic from "my ip address" and bingo- immediately see the public IP accessible.
Parfait
@dotnetcoder, I did all you and OP did and still the public IP spins forever and then gives a site cannot be reached error. Did you copy public IPv4 straight into URL bar? With http or https protocol? I even tried the DNS name and adjusted inbound rules to my IP, all IPs, even sg id to no avail. Everything in ECS is green, "active" or "running" and yet I cannot launch any page!
