boto3,Windows上的凭证文件在哪里?

时间:2020-07-18 17:54:08

标签: boto3

boto3在以下位置查找凭据

Task<Void> commitTask =
                getDriveResourceClient().commitContents(driveContents, null);

但是在Windows上呢?

我看到可以通过更改AWS_CONFIG_FILE来更改位置,但这在〜/ .aws / config中,所以同样的问题。

顺便说一下,这是我要运行的代码(Python):

~/.aws/credentials

1 个答案:

答案 0 :(得分:2)

在Windows中:C:\Users\<UserName>\.aws\credentials