Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CloudFormation not creating initial instance in Auto Scaling group

(Expired Pastbin Link Removed)

Then I try to create a stack is fails to create the Auto Scaling group as no EC2 instances are created. How do I trigger the creation of the initial instance?

Received 0 SUCCESS signal(s) out of 1. Unable to satisfy 100% MinSuccessfulInstancesPercent requirement
like image 795
ZZ9 Avatar asked Aug 18 '16 09:08

ZZ9


1 Answers

I believe I was able to replicate your symptoms with your template - the issue may be related to the AMI you're using. I selected the AMI for my region from the marketplace link as referenced by the shortened url in the parameter description. I'm still waiting for resource creation to fail (been almost an hour!) but otherwise the symptoms match up.

While launching, the scaling group is visible in the ASG console but with 0 instances. However, the Activity History tab shows a number of attempts to launch an instance, and all fail:

ASG console screenshot

The description on all of them is:

Description: Launching a new EC2 instance. Status Reason: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit http://aws.amazon.com/marketplace/pp?sku=aw0evgkw8e5c1q413zgy5pjce. Launching EC2 instance failed.

Have you accepted the terms and subscribed to that AMI in the marketplace? There are more details here: https://aws.amazon.com/marketplace/help/200799470#topic1

Note: I believe you will only see the ASG in the console while cloudformation is waiting for it - after the cfn rolls back, the asg (and the activity history) will disappear. As I'm still waiting for the asg resource creation to fail, I haven't definitely confirmed this.

like image 142
Chris Simon Avatar answered Oct 04 '22 12:10

Chris Simon