내용으로 건너뛰기

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년 전663회 조회

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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠