【发布时间】: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