配置 gsutil .boto 文件以使用 AWS STS assume_role

Configure gsutil .boto file to use AWS STS assume_role

正在努力解决 独立 版本的 gsutil(zip 文件可从以下网址下载:https://cloud.google.com/storage/docs/gsutil_install)是否支持使用(AWS具有 assume_role)?

的安全令牌服务 (STS)

我在 Windows 7,想知道 .boto 文件是什么样子才能让 assume_role 从 s3 存储桶中获取?

谢谢

gsutil 使用较旧的 bo​​to 库(与 boto3 不同,boto3 编写时不支持 GCS 资源),它似乎不支持 AWS 会话令牌 [1],就像您从 assume-role 在 AWS CLI [2].

[1] https://github.com/boto/boto/pull/3767

[2] https://docs.aws.amazon.com/cli/latest/reference/sts/assume-role.html