【问题标题】:Boto:Help me i am getting this errorBoto:帮帮我,我收到了这个错误
【发布时间】:2016-12-28 03:42:20
【问题描述】:
import boto3
 >>> client = boto3.client('ec2')
     >>> response = client.create_tags(DryRun = True | False, Resources = ['ABC', ], Tags = [{
                'Key' : 'vennkata',
                'Value' : 'ratnam'
            }, ])
    Traceback(most recent call last) :
    File "<stdin>", line 1, in < module >
File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 159, in _api_call
return self._make_api_call(operation_name, kwargs)

botocore.exceptions.EndpointConnectionError : Could not connect to the endpoint URL : "https://ec2.us-west.amazonaws.com/"

在使用卷 ID 创建快照时,任何人都可以提供避免此错误的建议吗?

【问题讨论】:

    标签: python amazon-web-services amazon-ec2 boto3


    【解决方案1】:

    无法连接到端点 URL:https://ec2.us-west.amazonaws.com

    us-west 不是有效区域。当前支持的区域是us-west-1us-west-2。请参阅 AWS Regions and Endpoints - Amazon Web Services 您一定是错误配置了该区域。检查 ~/.aws/config 并修复它或在 shell 中设置正确的值。

    export AWS_DEFAULT_REGION=us-west-1
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-11
      • 2022-10-07
      • 2016-07-12
      • 1970-01-01
      • 1970-01-01
      • 2021-11-28
      相关资源
      最近更新 更多