I have created a number of ecs services this way, but I find that from time to time I struggle to get everything right. I want to get some feedback from the community if there is any issues with the following steps:
Backgroud:
The ecs cluster creates instances on a non-default VPC
Steps:
Create a new task. Map port 0 to the exposed port 8080
Create an new Application Load Balancer. Make sure it use the right target vpc
- Create a service in the cluster. Choose the ALB as created in the previous. Add the target group to the load balancer.
Go to the relevant security group and make sure port 0-65535 of inbound traffic are allowed
Does the above steps make sense to you? Can they be further streamlined?