Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Encrypting .aws/crendentials

I am trying to encrypt AWS credentials on AWS CLI. I want to have my access_key and access_id not readable.

I have tried: aws kms encrypt --key-id --plaintext fileb:///.aws/credentials but I can still view content in plaintext

Any Ideas?

like image 290
Gurlal Avatar asked Feb 20 '26 15:02

Gurlal


1 Answers

You can't do what you are trying to do. AWS needs your credentials to be clear-text.

If this is your local machine and you are uncomfortable with having your credentials in your .aws/credentials file, try using a tool like aws-vault.

It will store your credentials in your operating systems local keystore and require you to enter a password when you want to use your credentials.

like image 116
JD D Avatar answered Feb 23 '26 16:02

JD D



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!