Why can't my ECS service register available EC2 instances with my ELB?

后端 未结 6 1944
盖世英雄少女心
盖世英雄少女心 2020-12-10 03:41

I\'ve got an EC2 launch configuration that builds the ECS optimized AMI. I\'ve got an auto scaling group that ensures that I\'ve got at least two available instances at all

6条回答
  •  萌比男神i
    2020-12-10 04:10

    In the end, it ended up being that my EC2 instances were not being assigned public IP addresses. It appears ECS needs to be able to directly communicate with each EC2 instance, which would require each instance to have a public IP. I was not assigning my container instances public IP addresses because I thought I'd have them all behind a public load balancer, and each container instance would be private.

提交回复
热议问题