【发布时间】:2018-10-28 05:33:05
【问题描述】:
我正在尝试使用此代码 (AWS Lambda - Copy EC2 Snapshot automatically between regions?) 自动将快照备份的副本传递到不同的区域。
我曾尝试在 python 中使用 boto3 库,但我不断收到此错误:
EndpointConnectionError: Could not connect to the endpoint URL: "https://ec2.us-east-1a.amazonaws.com/"
使用此代码:
client = boto3.client('ec2')
client.describe_snapshots(OwnerIds=['self'])
我已确保我的配置文件具有正确的安全密钥。不知道我还能做些什么来检索我需要的信息。
【问题讨论】:
标签: python amazon-web-services