[英]AWS CloudFormation: Failed to run cfn-init
I am getting an error "failed to run cfn-init" while running this template: 运行此模板时出现错误“无法运行cfn-init”:
aws-hangouts/s3-role-authentication.json at master · amazon-archives/aws-hangouts 主服务器上的aws-hangouts / s3-role-authentication.json·亚马逊档案/ aws-hangouts
I am not sure how to trouble-shoot such issues in cloud-formation. 我不确定如何解决云形成中的此类问题。 How exactly does cfn-init
work? cfn-init
如何工作?
我认为您必须在EC2实例上检查/var/log/cfn-init.log。
That template will launch an Amazon EC2 instance. 该模板将启动一个Amazon EC2实例。
The cfn-init
configuration will then download index.html
and images.zip
from the S3 bucket specified in the template parameters. 然后, cfn-init
配置将从模板参数中指定的S3存储桶下载index.html
和images.zip
。
You can check the log file in /var/log/cfn-init.log
or use Get System Log in the EC2 console to view errors. 您可以在/var/log/cfn-init.log
检查日志文件,或在EC2控制台中使用“ 获取系统日志 ”来查看错误。
Start by checking that the referenced S3 bucket exists and those two files are in the bucket. 首先检查所引用的S3存储桶是否存在,以及这两个文件在存储桶中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.