gpt4 book ai didi

python - 在哪里可以找到使用 boto3 编写自定义 AWS 凭证提供程序的文档?

转载 作者:行者123 更新时间:2023-12-04 01:26:15 24 4
gpt4 key购买 nike

我希望创建一个 python 进程来在运行时刷新临时 AWS 凭证(有效期为 30 分钟),以确保我的代码可以连续运行 30 分钟以上。

什么是 RefreshableCredentials 以及如何使用它?

最佳答案

完整的 AWS boto3 文档:https://boto3.amazonaws.com/v1/documentation/api/latest/index.html

凭据文档:https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html

RefreshableCredentials 是一个 botocore 类,其作用类似于身份验证请求所需凭据的容器,它可以自动刷新凭据

这是一个很好的使用指南:https://dev.to/li_chastina/auto-refresh-aws-tokens-using-iam-role-and-boto3-2cjf

关于python - 在哪里可以找到使用 boto3 编写自定义 AWS 凭证提供程序的文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61899028/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com