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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With