AWS CLI get rid of credentials file

1

Hello, We need to get rid of situation that we need to store our access keys in PC memory ( on a disk, not the RAM ), because of that we cannot use credentials file that is created by AWS CLI command aws configure. Someone knows any work around for this? maybe somehow we can send "access keys" directly with the commands that we run?

3 回答
1
已接受的回答
profile pictureAWS
专家
kentrad
已回答 2 年前
1

Hey there,

This isn't an AWS solution, but one that you may find interesting.

As for more 'native' solutions to the AWS CLI, you can go down the route of Environment Variables, as previously mentioned by another user. On the matter of your idea of passing the Access Key and Secret Key along with each command, I only know that you can do this in AWS Tools for PowerShell. I cannot see anything in the AWS CLI which would indicate that you can do the same in it.

profile pictureAWS
已回答 2 年前
  • Thank you for you answer @Ciaran Carragher, we probably will go with setuping shell variables, but the AWS VAULT does look as interesting solution.

0

Have you considered the AWS Secrets Manager? Would that be a good fit for your particular situation?

已回答 2 年前
  • Thank you for your answer @sharpedgewv , i need to read more about the AWS Secrets Manager, but if it is using "IAM static access keys" at any point, then it is not solution for us.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容