How do i fix ec2:DescribeFpgaImages error in aws cli?

0

To check AMI and AFI approved by others using AWS cli, I used the command "aws ec2 description-fpga-images > output",

An error occurred (UnauthorizedOperation) when calling the DescribeFpgaImages operation: You are not authorized to perform this operation. User: arn:aws:iam::"user-id":user/"name" is not authorized to perform: ec2:DescribeFpgaImages because no identity-based policy allows the ec2:DescribeFpgaImages action

The error phrase appears. How do i solve this? I tried to solve the error by adding a policy, but no policy fits it.

Key setting and regional setting were carried out without any problems in advance.

jihyun
已提问 2 个月前133 查看次数
1 回答
0

Hello!

Thank you for reaching out with this issue. I have a few questions that may lead to debug paths or for us to reproduce this issue:

  1. Which AWS region are you attempting to run this command on?
  2. Have you tried running this command in an AWS CloudShell?
  3. Were you able to run the CLI command with the same user and role before?
  4. Which IAM policies did you attempt to add before running the command? We recommend trying AdministratorAccess to debug the issue
已回答 2 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则