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 Answers
1
Accepted Answer
profile pictureAWS
EXPERT
kentrad
answered 2 years ago
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
answered 2 years ago
  • 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?

answered 2 years ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions