Monday, 1 April 2019

How to Share an Amazon Machine Image (AMI) privately with another AWS account by Raj Gupta

Note:- Sharing an AMI from different Regions is not possible. You can first copy the AMI in same region and then share it.




Suppose I have one production AMI(ami-05b63a87933ede20a) in my first account (Raj) as shown in below pic:-




and I want to share it with other account (RAJ KUMAR GUPTA) in secure manner...  as shown in below pic but in same Regions .




Step:- 1   In account first(Raj) Select the AMI then go to Actions and click on Modify Image Permissions



Step 2:- After click on Modify Image Permissions  you need to select as per below and then need to add account ID of second account(RAJ KUMAR GUPTA) to which you want share the AMI



Then click on Add Permission and Save it.

Step 3:- Now logging into your second account (RAJ KUMAR GUPTA) then you are able to see same AMI what ever we have share from first account(Raj)



Now from this AMI, you can create EC2 server.

2 comments: