Run the following AWS command to import the Entrust PKI Hub image as an EC2 snapshot.

aws ec2 import-snapshot --disk-container file://container.json

For example: 

$ aws ec2 import-snapshot --disk-container file://containers.json
{
"ImportTaskId": "import-snap-03b38da24cb5fdde1",
"SnapshotTaskDetail": {
"DiskImageSize": 0.0,
"Progress": "0",
"Status": "active",
"StatusMessage": "pending",
"UserBucket": {
"53Bucket": "edm-01",
"S3Key": "edm-1.0.0_2023-06-06-10_38_16.raw"
}
},
"Tags": []
}

Use the value of the ImportTaskId field to check the status of the import process.

aws ec2 describe-import-snapshot-tasks --import-task-ids <ImportTaskId>

For example:

aws ec2 describe-import-snapshot-tasks --import-task-ids import-snap-03b38da24cb5fdde1
{
"ImportSnapshotTasks": [
{
"ImportTaskId": "import-snap-03b38da24cb5fdde1",
"SnapshotTaskDetail": {
"DiskImageSize": 10740563968.0,
"Format": "raw",
"SnapshotId": "snap-03ea2ef99eb98d255",
"Status": "completed",
"UserBucket": {
"S3Bucket": "edm-01",
"S3Key": "edm-2.0.0_2023-06-06-10_38_16.raw"
}
},
"Tags": []
}
]
}

In the command output, check the value of the Status field. 

  • If this value is active, rerun the command after 5 minutes to recheck the status.
  • If this value is completed, the import process has already finished. Copy the SnapshotId value to use it in the next step Creating an AMI from the snapshot.