スキップしてコンテンツを表示

Can we provide temporary access key,ID and session token in AWS Credentials File

0

While creating a aws credentials file in windows can we provide temporary access keys and id and session tokens..!?

Would be really great if you could help with this..

Thanks.

質問済み 2年前659ビュー

2回答
1

Hello.

I hope the steps in the document below will be helpful.
The steps in the document below use "aws sts assume-role" to obtain temporary credentials from an IAM role.
Rather than creating an authentication file, it is registered in an environment variable.
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html#using-temp-creds-sdk-cli

エキスパート

回答済み 2年前

エキスパート

レビュー済み 2年前

0

Hello,

The official documentation states that storing temporary credentials in credential files is acceptable [1]. However, instead of updating the file each time the short-term credentials expire, consider exporting them as environment variables [2]. This avoids repeatedly editing the credential file.

[1] https://docs.aws.amazon.com/cli/v1/userguide/cli-authentication-short-term.html

[2] https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html#using-temp-creds-sdk-cli

AWS

回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ