Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue when copy AMI owned by another account

I'm trying to copy an AMI from one account A but owned by another account B. I have previously built this AMI. The account A has launch permissions on the AMI, but when I copy I got this error message : Images from AWS Marketplace cannot be copied to another AWS account.

So, I make a DescribeImage and I got this :


productCodes
 item
            productCode 7w73f3XXXXXXXXXXXXXX /productCode
            type marketplace /type
/item
/productCodes

I think that my issue come from the productCode & type. Therefore my question, how can I remove productCode and type please ?

Best regards,

like image 636
willyRG Avatar asked Jan 13 '16 09:01

willyRG


People also ask

Can I copy AWS AMI to another account?

It's not possible to transfer existing instances or AMIs between AWS accounts. Instead, you can manually migrate an EC2 image from one AWS account to another.

Can AMI be copy from one region to another?

The copy process will result in a separate and new AMI in the destination region which will have a unique AMI ID. The copy process will update the Amazon RAM Image and Amazon Kernel Image references to point to equivalent images in the destination region. You can copy the same AMI to multiple regions simultaneously.

What happens when you deregister an AMI?

You can deregister an AMI when you have finished using it. After you deregister an AMI, you can't use it to launch new instances. When you deregister an AMI, it doesn't affect any instances that you've already launched from the AMI or any snapshots created during the AMI creation process.


1 Answers

This is because the AMI in question is licensed from the marketplace; that is, the author doesn't want it simply given away / copied to anyone. Please visit the Marketplace and license the AMI.

like image 51
CodeShane Avatar answered Sep 20 '22 09:09

CodeShane