AWS AMI [Amazon Machine Image]
In the full form, you will understand the use of AMI. It's basically a copy of your running EC2 Machine which we store on AWS as a backup of your machine.
You can transfer AMI with specific AWS accounts without making the AMI public. All you need are the AWS account IDs.
In this article, we are going to understand how to transfer ami or copy Ec2 instance from one Aws account to another account.
I have written this article because recently we had face one issue where we need to transfer an ec2 account from one account to another, and we struggled a lot to find a solution on this.
So after successfully shared ec2 instance between two accounts I feel to share knowledge with you all.
Transferring or sharing Ec2 instances has few steps to follow. We can not share or copy ec2 directly first we need to take a snapshot of that ec2 instance then only you will able to share the instance.
Let’s start the process to transfer ami snapshot from one account to another aws account.
Assume that we have to share or copy ec2 from AWS-1 account to AWS-2 account.
Step 1: Login to AWS 1 Account.
First, Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/ and login to your account AWS-1.
Step 2: Make AMI
After login into your aws-1 account, you need to create AMI of EC2 instance which you would be sharing with AWS-2 Account.
To make AMI, right click on EC2 instance and go to “Image-->Create Image” then give Image Name and Description and make sure to tick to No Reboot option before creating image otherwise your ec2 server has been a reboot in the process of Create Image.
After feeling necessary information click on “Create Image” button. It will take some time to create image depends on how much storage available on the server.
hello sir,,,,,
All are nice steps…. and follow all steps and i work on that…
But, When i login in second new AWS account and i search my ami in search box than i can’t getting my ami id. So Without AMI id how can i launch my server ?
So, Please help me and Guide me…
Thank x in advance.
Hello Jaydeep,
You will get the AMI ID in your first aws account. copy that ami id and then search it in your another aws account as i mentioned in article. I hope you add the permissions as explained in step 3.
Please check and revert if you still getting issue.
Hi Prashant,
Done all the steps and gave permission to “Public” but still i can’t get the ami in “AWS-2 Account”.
Please suggest.
HI Prashant
if i transfer ami to another account
which account is paid to charging ami usage