Open rxue opened 1 year ago
Base on the suggestion in the given https://repost.aws/questions/QU1bCV9wT4T5iBrrP1c2ISfg/container-cannot-bind-to-port-80-running-as-non-root-user-on-ecs-fargate , the kernel parameter net.ipv4.ip_unprivileged_port_start
is probably the root cause of the error. So in order to prove the correctness, I would have to have access to the server started with Fargate.
Learning resource for accessing to the server started with Fargate :
Summary
NOTE: based on the learning resources above, a task IAM role with a specific policy is needed when creating the task definition. However, since starting a container through the Get started wizard does not include the task role fill-in field, access to the container started by means of Get started wizard is next to impossible.
So in order to create a container with Fargate and have access to it, there are the following cheat sheet steps:
Met with
java.net.SocketException
when trying to start for the first time:Clue for the error found by means of Google: https://repost.aws/questions/QU1bCV9wT4T5iBrrP1c2ISfg/container-cannot-bind-to-port-80-running-as-non-root-user-on-ecs-fargate