2
我正在使用aws-sdk gem
。我想停止並使用'aws-sdk'gem啓動aws實例。aws-sdk gem:SocketError:getaddrinfo:姓名或服務未知
下面是我的代碼開始已經駝背的亞馬遜實例,但它給我的錯誤作爲SocketError: getaddrinfo: Name or service not known
ec2 = AWS::EC2::Client.new(
region: 'us-west-2c',
credentials: {:access_key_id => 'XXXXXXXXX',:secret_access_key => 'XXXXXXXXXXX'}
)
resp = ec2.start_instances({
instance_ids: ["i-xxxxxx"],
additional_info: "String"
})
請幫
感謝,