When i try to reproduce this python example of ecs cluster with launch type ec2, i face such an issue:
1. if run "as is" - servers are up and running, there is ec2, ecs, but no ec2 registered in ecs.
2. when i comment out everything related to load balacner - ec2 is registered in ecs, but, obviously, i have no access to instance, since it is not publicly available.
My hypothesis is that there is an issue with load balacner configuration, so that it cannnot run healtcheck and thus task is never started in ec2.
Has everyone else seen this problem, how that can be solved?
08/30/2023, 11:02 AM
Been a while since I've done AWS, but it looks like there isn't a security group attached to the ec2 instances in this code to let the LB communicate with it
08/31/2023, 10:19 AM
you were right, resolved my problem, thanks!
spend hours trying figuring out what was wrong