2013-01-01 69 views
0

我正尝试使用Cloud Formation脚本创建群集结构。我正在使用Bitnami drupal AMI。 卜脚本生成以下eror:AWS Cloud formation cfn-init错误

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

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

像下面
[email protected]:/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 Console事件:

逻辑ID PhysicalID状态原因

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

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

我没发现问题。请问你能帮帮我吗?

亲切的问候......

回答

1

是否有可能的是,CFN-init脚本不是图像的一部分吗?

根据docs,它们作为Amazon Linux映像的一部分进行安装,但可能不会在其他映像中默认包含它们。

0

扩展在什么克里斯的建议,我不得不添加下面让CFN-INIT我的CloudFormation脚本工作:

"apt-get -y install python-setuptools\n", 
"easy_install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-1.0.tar.gz\n", 

,我发现这个在这里一些真正有用的信息:http://smart421.wordpress.com/2012/12/14/aws-cloudformation-and-chef-on-centos/

我还发现我的UserData中的错误导致cfn-init失败。我通过使用VS2012在上载之前验证了脚本(如此处所示:How can I quickly and effectively debug CloudFormation templates?)。

希望有所帮助。

相关问题