EC2: Convert an Instance to AMI
Who can use this feature
Anyone with these permissions: Restore resources
This article explains how to convert an Eon EC2 snapshot to an AMI.
Decide whether to convert to an AMI or restore
An EC2 instance can be converted to an AMI or restored, so you’ll need to decide which option is best for your case:
Convert the snapshot
Before you start
Before you convert to an AMI, make sure:
-
A restore account has been connected to your Eon account.
-
The AWS restore account has a KMS key that grants access to
EonRestoreAccountRoleandEonRestoreNodeRole.
Find the snapshot you want to convert
-
In your inventory, select the EC2 resource you want to restore. The Resource Details drawer opens.
-
Click the Eon snapshots tab. You’ll see a calendar view with colored dots on the days when snapshots were taken. There can be more than one snapshot per day.
When you click a day, a list of Eon snapshots taken that day is displayed below the calendar.
-
Expand the snapshot you want to restore. Click Instance, and then click (Convert to AMI). The Convert to AMI wizard opens.
Choose the restore account
In the Convert to AMI wizard, you’re taken through a three-step process. The first step is to choose a restore account.
Choose the cloud account you want to restore the AMI in, and then click Next.
Set the AMI details
In the Image configuration step, you’ll set the AMI details.
-
Choose a Region to store the AMI in, and enter a Name to identify the AMI.
-
Optionally, enter an Image description.
-
If you want to retain the tags that were present when the snapshot was taken, turn Keep original tags on. Otherwise, turn Keep original tags off.
In both cases, the new AMI is tagged with
eon:restore=true. Tags with theeon:prefix aren’t included in the original tags because Eon uses this prefix for internal operations. -
Click Next.
Set details for the attached volumes
In this step of the wizard, you’ll set encryption, volume settings, and tags for the volumes attached to the instance at the time the snapshot was taken. Expand individual volumes to show volume-specific settings.
Encryption
You can encrypt all volumes with the same key, or you set each volume’s key separate from the other volumes. If you choose to encrypt each volume separately, turn off Encrypt all volumes with the same key. Encryption settings are then displayed for each volume.
You can either select an existing key or create a key and paste an ARN.
Volume settings
For each volume, you can keep the original volume settings, or you can customize the drive’s type, size, IOPS, and throughput.
Tags
Each volume has its own tags, independent of the instance-level tags in the previous step. If you want to retain the tags that were present when the snapshot was taken, turn Keep original tags on. Otherwise, turn Keep original tags off.
In both cases, the new volume is tagged with eon:restore=true.
Tags with the eon: prefix aren’t included in the original tags because Eon uses this prefix for internal operations.
Start the restore job
Click Restore to start the asynchronous restore job.
You can see your list of restore jobs on the Restore jobs tab in the Jobs page.