调用ListBuckets操作时发生错误(InvalidToken):提供的令牌格式错误或无效. [英] `An error occurred (InvalidToken) when calling the ListBuckets operation: The provided token is malformed or otherwise invalid.` w/`aws s3 ls`
本文介绍了调用ListBuckets操作时发生错误(InvalidToken):提供的令牌格式错误或无效.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我成功通过2个因素进行了身份验证,但是使用aws s3 ls
时,我却不断获得
I successfully authenticate with 2 factor but when using aws s3 ls
I keep getting
调用ListBuckets操作时发生错误(InvalidToken):提供的令牌格式错误或无效.
An error occurred (InvalidToken) when calling the ListBuckets operation: The provided token is malformed or otherwise invalid.
我确实拥有管理员权限.
And I do have admin rights.
推荐答案
问题是我没有将--region
传入. aws s3 --region us-gov-west-1 ls
.我想这也可以用ENV变量设置.该错误消息是改进的候选.
Issue was that I wasn't passing the --region
in. e.g. aws s3 --region us-gov-west-1 ls
. I suppose this could be set with an ENV variable too. That error message is a candidate for improvement.
这篇关于调用ListBuckets操作时发生错误(InvalidToken):提供的令牌格式错误或无效.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文