echo "serverless config credentials --provider AWS --key {{ op://personal/aws/lambda/AWS_ACCESS_KEY_ID }} --secret {{ op://personal/aws/lambda/AWS_SECRET_ACCESS_KEY }}" | op inject
output:
serverless config credentials --provider AWS --key 123KEY123 --secret 123SECRET123
Securely authenticate any CLI with 1Password
alias aws-auth="op run --env-file=$HOME/git/envs/aws.env --"
alias aws="op run --env-file=$HOME/git/envs/aws.env -- aws"