Encrypting .aws/crendentials

Viewed 103

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?

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.

Related