`An error occurred (InvalidToken) when calling the ListBuckets operation: The provided token is malformed or otherwise invalid.` w/`aws s3 ls`

后端 未结 5 1367
傲寒
傲寒 2021-02-19 07:00

I successfully authenticate with 2 factor but when using aws s3 ls I keep getting

An error occurred (InvalidToken) when calling the ListBuck

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-19 07:46

    Run aws configure

    1. You may leave access key and access key id blank if you have an IAM role attached

    2. Set value for 'region'

    Now you will be able to successfully run 'aws s3 ls'

    Else run 'aws s3 ls --region '

提交回复
热议问题