Ceredentials configuration
Using pass command for key
Edit .aws/credentials:
[default]
region = eu-west-2
credential_process = /usr/bin/pass <account>
The contents of the password file needs to be in JSON format like:
{
"Version": 1,
"AccessKeyId": "AKIA...",
"SecretAccessKey": "...",
}
Test access
aws sts get-caller-identity