Cyber Defense Advisors

An error occurred (AuthFailure) when calling the ModifyImageAttribute operation: Not authorized for…

I got this error while running a script to deploy an EC2 instance using an AMI in another account.