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
In the .aws credentials file remove session token and it will work