Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY

TJB picture TJB · Feb 13, 2018 · Viewed 16.6k times · Source

Just configured the AWS CLI on my computer with my AWS Access and Secret Key. When I try to use the AWS CLI though it gives me this error.

Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY

I went to ~/.aws/config, and sure enough those credentials are there, including the AWS Secret Key, so I'm not sure why its squawking at me.

Answer

Carlos Rodriguez picture Carlos Rodriguez · Feb 13, 2018

You should have this file ~/.aws/credentials and the contents should be in the following format:

[default]
aws_access_key_id = XXXXXXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX