AWS CLI error “The provided token is malformed or otherwise invalid”

Starting getting this error when running a simple ‘aws s3 ls’

An error occurred (InvalidToken) when calling the ListBuckets operation: The provided token is malformed or otherwise invalid.

My current version:

% aws --version
aws-cli/2.0.59 Python/3.7.4 Darwin/20.1.0 exe/x86_64

Downloaded latest version and upgraded and problem fixed. New version is now:

% aws --version aws-cli/2.1.3 Python/3.7.4 Darwin/20.1.0 exe/x86_64

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.