2013-01-01 72 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?)。

希望有所幫助。

相關問題