![](/img/trans.png)
[英]What should I do to fix "The AWS Access Key Id you provided does not exist in our records" using boto3
[英]The instance ID does not exist even when I clearly see it
我認為您正在使用舊的 boto 庫。 您需要使用 boto3 版本。
py -m pip install boto3 # to install boto3 on your machine
這是片段。
import boto3
ec2_client = boto3.client("ec2", region_name="us-east-1")
response = ec2_client.describe_instances(InstanceIds=["i-0d8d1c65cba1e9066"])
print(response)
希望這可以幫助。 測試后標記為已回答。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.