Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LaunchWaitCondition failed. The expected number of EC2 instances were not initialized within the given time

The error message is:

Stack named 'awseb-e-r3uhxvhyz7-stack' aborted operation. Current state: 'CREATE_FAILED' Reason: The following resource(s) failed to create: [AWSEBInstanceLaunchWaitCondition].

I am trying to use Multi-Container Docker in AWS Elastic Beanstalk.

Can someone help me to get rid of this error.Is it necessary to use more than one EC2 instance for using Multi-Container Docker in AWS Elastic Beanstalk?

like image 417
djkpA Avatar asked May 09 '15 13:05

djkpA


1 Answers

This sound kinda what your issue is:

If you use Amazon VPC with Elastic Beanstalk, Amazon EC2 instances deployed in a private subnet cannot communicate directly with the Internet. Amazon EC2 instances must have Internet connectivity to communicate to Elastic Beanstalk that they were successfully launched. To provide EC2 instances in a private subnet with Internet connectivity, you must add a load balancer and NAT to the public subnet. You must create the appropriate routing rules for inbound and outbound traffic through the load balancer and NAT. You must also configure the default Amazon VPC security group to allow traffic from the Amazon EC2 instances to the NAT instance.

Source: Amazon EC2 Instances Fail to Launch within the Wait Period

like image 130
Adam Ocsvari Avatar answered Nov 08 '22 14:11

Adam Ocsvari