2017-11-20 4 views
0

나는이 SDK에서 다른 보석을 사용하여 작업 해 왔으며 이전에이 문제를 보지 못했습니다. 나는 가격 클라이언트를 작성하고 일부 서비스 설명을 얻으려고하지만 난이 예외를 받고 있어요 내가 왜 확실하지 않다 : 내가 얻을AWS Ruby SDK 가격 결정 Aws :: 오류 :: NoSuchEndpointError

require 'aws-sdk-pricing' 

c = Aws::Pricing::Client.new(region: 'eu-west-1') 
r = c.describe_services({ format_version: "aws_v1", max_results: 1, 
    service_code: "AmazonEC2" }) 

과 :

Aws::Errors::NoSuchEndpointError: Encountered a SocketError while attempting to connect to:

https://api.pricing.eu-west-1.amazonaws.com

This is typically the result of an invalid :region option or a poorly formatted :endpoint option.

  • Avoid configuring the :endpoint option directly. Endpoints are constructed from the :region . The :endpoint option is reserved for connecting to non-standard test endpoints.

  • Not every service is available in every region.

  • Never suffix region names with availability zones. Use "us-east-1", not "us-east-1a"

Known AWS regions include (not specific to this service):

ap-northeast-1 ap-northeast-2 ap-south-1 ap-southeast-1 ap-southeast-2 ca-central-1 eu-central-1 eu-west-1 eu-west-2 sa-east-1 us-east-1 us-east-2 us-west-1 us-west-2 cn-north-1 us-gov-west-1

내가했습니다 이것을 다른 지역에서도 시도해 보았고 같은 결과를 얻었습니다. aws-sdk-ec2와 같은 다른 패턴의 동일한 패턴을 사용하면 문제없이 클라이언트를 인스턴스화 할 수 있습니다. 내가 여기서 무엇을 놓치고 있니?

미리 감사드립니다.

루비 2.3.3이 중요한 경우 사용.

답변