AWS CloudFormation未在Auto Scaling组中创建初始实例

Air*_*bat 7 amazon-web-services aws-cloudformation

(已过期Pastbin Link已删除)

然后我尝试创建堆栈无法创建Auto Scaling组,因为没有创建EC2实例.如何触发初始实例的创建?

Received 0 SUCCESS signal(s) out of 1. Unable to satisfy 100% MinSuccessfulInstancesPercent requirement
Run Code Online (Sandbox Code Playgroud)

Chr*_*mon 5

我相信我能够用您的模板复制您的症状 - 该问题可能与您使用的 AMI 有关。我从参数描述中缩短的 url 所引用的市场链接中选择了我所在地区的 AMI。我仍在等待资源创建失败(已经将近一个小时了!)但否则症状会匹配。

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 控制台截图

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.