I successfully authenticate with 2 factor but when using aws s3 ls I keep getting
aws s3 ls
An error occurred (InvalidToken) when calling the ListBuck
Run aws configure
You may leave access key and access key id blank if you have an IAM role attached
Set value for 'region'
Now you will be able to successfully run 'aws s3 ls'
Else run 'aws s3 ls --region '