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 réponses
1
Réponse acceptée
profile pictureAWS
EXPERT
kentrad
répondu il y a 2 ans
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
répondu il y a 2 ans
  • 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?

répondu il y a 2 ans
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions