我正在使用chef_gem "right_aws" version '3.0.5'
https://supermarket.chef.io/cookbooks/aws#changelog
v2.5.0 (2014-10-22)尝试在ec2-central-1区域中使用aws cookbook时出现以下错误
WARN: Rightscale::HttpConnection : request failure count: 1, exception: #<SocketError: getaddrinfo: Name or service not known>
WARN: Rightscale::HttpConnection : request failure count: 2, exception: #<SocketError: getaddrinfo: Name or service not known>
WARN: Rightscale::HttpConnection : request failure count: 3, exception: #<SocketError: getaddrinfo: Name or service not known>
WARN: Rightscale::HttpConnection : request failure count: 4, exception: #<SocketError: getaddrinfo: Name or service not known>
WARN: Rightscale::HttpConnection : re-raising same error: https://eu-central-1.ec2.amazonaws.com:443 temporarily unavailable: (SocketError: getaddrinfo: Name or service not known) -- error count: 4, error age: 0在本文档'http://docs.aws.amazon.com/general/latest/gr/rande.html‘中,端点应该是'ec2.eu-central-1.amazonaws.com'
我试图在libraries-> ec2.rb下编辑我的食谱,但它不起作用:
require 'open-uri'
module Opscode
module Aws
module Ec2
...
def ec2
region = instance_availability_zone
region = region[0, region.length-1]
aws_ec2_endpoint = "https://ec2." + region + ".amazonaws.com"
Chef::Log.debug("Using AWS EC2 endpoint: " + aws_ec2_endpoint)
@@ec2 ||= create_aws_interface(RightAws::Ec2)
end有任何人可以提供的变通方法吗?
谢谢!
发布于 2016-09-15 22:31:48
如果您有相同的问题,请在此处找到所有详细信息:https://github.com/rightscale/right_aws/issues/190
https://stackoverflow.com/questions/39453398
复制相似问题