Search code examples
amazon-web-servicesamazon-ec2amazon-amiamazon-ebs

sharing an Amazon AWS AMI to another account via the console


I'm trying to view an AMI shared from one of my amazon accounts with another amazon account and it's not visible. I've followed all of the instructions here:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-explicit.html

I've been able to share an EBS Volume successfully, but not the AMI. Are there any undocumented issues or steps anyone has run in to which might keep me from viewing the shared AMI?

Alternatively - is there a way to build an AMI from the snapshot?


Solution

  • It's possible that one of your accounts is set to a different region than your other. At least, that's what I just ran into.

    AMIs don't cross regions - an AMI created in region A will never show up in any other region. You'll see this if your two accounts are in different regions, or even if you switch regions in one of your accounts.

    There are two things you can do:

    1. Just change regions in your target account. The AMI should magically appear - at least, it did for me. Easy, but unsatisfying, if you really like some other region.

    2. In your source account, copy the AMI into the region that you'd like to use it from. Here are the official docs, but it's pretty straightforward. From the console, right-click the AMI, select Copy AMI, choose your region, and press the Copy AMI button. Wait until copied, then set permissions on the newly-generated AMI.

    You'll have to wait, but at least you won't have to go through the song-and-dance that you used to.