AWS错误模糊时如何检索详细信息

How to retrieve detailed information when AWS error are vague

我想知道在AWS中错误模糊时如何搜索详细信息。在下面的示例中,我想知道缺少哪个权限或执行了哪个操作。

Terminated with errors 
Service role bundle-release-import-AWSDataPipelineRole has insufficient EC2 permissions.
EC2 Message: AmazonEC2Exception: You are not authorized to perform this operation.
(Service: AmazonEC2; Status Code: 403; Error Code: UnauthorizedOperation; 
Request ID: e2614d7b-ef8f-467d-81cf-14ee9c4671c8; Proxy: null)

您可以使用:

选项 1:使用 Athena 查询通过搜索 AWS CloudTrail 日志解决 IAM 权限问题API调用失败

选项 2:使用 AWS CLI 对 IAM 权限进行故障排除API调用失败

有关如何实现每个选项的更多详细信息,您可以参考下面的文章

https://aws.amazon.com/premiumsupport/knowledge-center/troubleshoot-iam-permission-errors/