EC2 Deregister Image Client.UnauthorizedOperation Error

0

Hi AWS,

I have whitelisted the IAM permission ec2:DeregisterImage in the SCP. I have tried to deregister the image both using console and AWS CLI. I am assuming an IAM role for doing this. I was following this Stackoverflow link https://stackoverflow.com/questions/41157866/cannot-deregister-ami-from-aws-an-error-occurred-attempting-to-deregister-amis to resolve the issue but none of the way worked out for me.

Please help.

Thanks

2 回答
0

What happens if I unregister with administrator privileges?

profile picture
专家
已回答 1 年前
  • Still it didn't workout @Riku_Kobayashi. I tried every way possible but nothing worked out.

0

Try using the IAM Policy Simulator to see where it is being denied.

profile pictureAWS
专家
kentrad
已回答 1 年前

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

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

回答问题的准则