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.
ec2:DeregisterImage
Please help.
Thanks
What happens if I unregister with administrator privileges?
Still it didn't workout @Riku_Kobayashi. I tried every way possible but nothing worked out.
Try using the IAM Policy Simulator to see where it is being denied.
您尚未登入。 登入 去張貼答案。
一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。
Still it didn't workout @Riku_Kobayashi. I tried every way possible but nothing worked out.