这是我第一次尝试使用VPC。cfn-init不能在使用Cloud Formation的VPC中工作
我刚刚将我的模板更改为使用VPC。当堆栈在VPC之外启动时一切正常,但现在它们在VPC中,我无法使用cfn-init(Ec2Config)软件包在启动实例时从S3下载文件。它是一个Windows盒子。
我看到CFN-INIT日志以下日志:
2012-10-11 08:11:40,992 DEBUG Client initialized with endpoint https://cloudformation.us-east-1.amazonaws.com
2012-10-11 08:11:41,523 DEBUG Describing resource LaunchConfigName in stack StackName
2012-10-11 08:12:03,113 ERROR URLError: getaddrinfo returns an empty list
2012-10-11 08:12:03,144 DEBUG Sleeping for 0.921699 seconds before retrying
2012-10-11 08:12:25,109 ERROR URLError: getaddrinfo returns an empty list
2012-10-11 08:12:25,109 DEBUG Sleeping for 1.240427 seconds before retrying
2012-10-11 08:12:47,386 ERROR URLError: getaddrinfo returns an empty list
2012-10-11 08:12:47,386 DEBUG Sleeping for 5.528233 seconds before retrying
2012-10-11 08:13:13,968 ERROR URLError: getaddrinfo returns an empty list
2012-10-11 08:13:13,968 DEBUG Sleeping for 4.688940 seconds before retrying
2012-10-11 08:13:39,677 ERROR URLError: getaddrinfo returns an empty list
我看到CFN-HUP日志以下日志:
2012-10-11 08:23:06,550 ERROR Error: could not find main configuation at C:\cfn\cfn-hup.conf
2012-10-11 08:23:06,893 ERROR Error: main section must contain stack option
2012-10-11 08:33:06,089 ERROR Error: could not find main configuation at C:\cfn\cfn-hup.conf
2012-10-11 08:33:06,370 ERROR Error: main section must contain stack option
2012-10-11 08:43:06,533 ERROR Error: could not find main configuation at C:\cfn\cfn-hup.conf
2012-10-11 08:43:06,876 ERROR Error: main section must contain stack option
2012-10-11 08:53:06,119 ERROR Error: could not find main configuation at C:\cfn\cfn-hup.conf
2012-10-11 08:53:06,416 ERROR Error: main section must contain stack option
从实例中,我可以通过访问互联网网页浏览器。
真的吗?没有人 ? – dparkar