在尝试获取 AWS 上交付的产品的权利信息时:
require 'aws-sdk'
client = Aws::MarketplaceEntitlementService::Client.new
client.get_entitlements({product_code: "#{product_id}"})
我得到:
Seahorse::Client::NetworkingError: Failed to open TCP connection to entitlement.marketplace.eu-west-1.amazonaws.com:443 (getaddrinfo: Name or service not known)
凭据中的用户具有:
AWSMarketplace 完全访问权限
和
AWSMarketplaceGetEntitlements
这与将 us-east-1 作为区域相同的错误。您对如何解决这个问题有任何想法吗?