解码AWS中的加密授权/错误消息
一些涉及IAM许可的动作可能会返回客户端。
Some actions that involve IAM permissions may return a Client.UnauthorizedOperation responses.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
一些涉及IAM许可的动作可能会返回客户端。
Some actions that involve IAM permissions may return a Client.UnauthorizedOperation responses.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
运行以下代码以更轻松地读取JSON格式的错误。
Run this below code for easier reading of the error in JSON format.
您可以使用以下命令从CLI中解密消息:
这将为您提供一个看起来像:
错误消息实际上是编码JSON “” ,默认情况下,嵌入式报价(
) “
)被逃脱为\”
;要促进阅读错误,请提取消息部分,然后使用文本编辑器将\“
”替换为“ ”。You can decrypt the message from the CLI using the following command:
This will give you an output that looks like:
The error message is actually encoded JSON inside
""
, by default the embedded quotes ("
) are escaped as\"
; to facilitate reading the error, extract the message portion and use a text editor to replace\"
with"
.为了使其更可读:
如果您没有JQ,则可以从这里 https:// stedolan。 github.io/jq
To get it more readable:
If you don't have jq you can take it e.g. from here https://stedolan.github.io/jq