Ir para o conteúdo

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.

feita há 2 anos664 visualizações

2 Respostas
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

ESPECIALISTA

respondido há 2 anos

ESPECIALISTA

avaliado há 2 anos

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

respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.