amazon-web-services - AWS 云形成 cfn-init 错误

标签 amazon-web-services aws-cloudformation

我正在尝试使用 Cloud Formation 脚本创建集群结构。我正在使用 Bitnami drupal AMI。 但是脚本产生以下错误:

WaitCondition received failed message: 'Failed to run cfn-init' for uniqueId: i-4d121a16

然后我连接到实例并检查 cfn-init.log:

bitnami@ip-10-58-51-235:/var/log$ cat cfn-init.log                              
2013-01-01 19:18:23,128 [INFO] Starting new HTTP connection (1): 169.254.169.254
2013-01-01 22:52:17,607 [INFO] Starting new HTTP connection (1): 169.254.169.254
2013-01-01 22:52:17,621 [INFO] Starting new HTTPS connection (1): cloudformation-waitcondition-    eu-west-1.s3.amazonaws.com

我的 AWS 控制台事件如下:

逻辑ID物理ID状态原因

mycluster arn:aws:cloudformation:eu-west-1:318730... CREATE_FAILED 无法创建以下资源:[WaitCondition]

WaitCondition vgdrobe-WaitCondition-UWEKNUJ8TMT6 CREATE_FAILED WaitCondition 收到失败消息:“无法运行 cfn-init”,uniqueId:i-59272f1c

WaitCondition vgdrb-WaitCondition-MML6Y6E47WTB CREATE_IN_PROGRESS

WebServerGroup vgdrb-WebServerGroup-1OBJYOSQX8093 CREATE_COMPLETE

我找不到问题所在。你能帮我一下吗?

亲切的问候...

最佳答案

cfn-init 脚本是否可能不是镜像的一部分?

根据docs ,它们作为 Amazon Linux 镜像的一部分安装,但默认情况下可能不包含在其他镜像中。

关于amazon-web-services - AWS 云形成 cfn-init 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14115093/

相关文章:

amazon-web-services - 在 AWS CloudFormation 中一一生成实例

amazon-web-services - 上传到 Amazon/CloudFront 时如何验证 SSL 证书链?

javascript - S3 Nodejs 类型错误 : Cannot read property 'path' of undefined

amazon-web-services - AWS 和 CloudFormation : How to attach a Virtual Private Gateway to a Routing Table?

aws-cloudformation - AWS RDS Stack 更新始终替换数据库集群

amazon-web-services - 如何在cloudformation中添加自定义属性?

amazon-web-services - AWS Lambda 调用 Fargate 任务

swift - AWS Cognito/从 sub 获取用户信息

java - AWS Java - 如何加载 ~/.aws/config 文件?

aws-cloudformation - 是否有一种机制可以从云形成模板中创建的实例中获取值