Entrust PKI as a Service

Importing the AMI

Run the following AWS command to import the agent OVA as an EC2 AMI.

aws ec2 import-image --disk-containers file://containers.json

For example:

$ aws ec2 import-image --disk-containers file://containers.json
{
    "ImportTaskId": "import-ami-0c0ccaaab21ee1ce5",
    "Progress": "1",
    "SnapshotDetails": [
        {
            "Description": "Agent AMI file",
            "DiskImageSize": 0.0,
            "Format": "OVA",
            "Url": "s3://PKIaaS-vm/PKIaaS-vm-prod-us.ova",
            "UserBucket": {
                "S3Bucket": "PKIaaS-vm",
                "S3Key": "PKIaaS-vm-prod-us.ova"
            }
        }
    ],
    "Status": "active",
    "StatusMessage": "pending"
}

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

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

For example:

{
    "ImportImageTasks": [
        {
            "Architecture": "x86_64",
            "ImageId": "ami-0844eae6801fff32a",
            "ImportTaskId": "import-ami-0c0ccaaab21ee1ce5",
            "LicenseType": "BYOL",
            "Platform": "Linux",
            "SnapshotDetails": [
                {
                    "DeviceName": "/dev/sda1",
                    "DiskImageSize": 1538403840.0,
                    "Format": "VMDK",
                    "SnapshotId": "snap-0a6deaf4b94eb2b36",
                    "Status": "completed",
                    "Url": "s3://PKIaaS-vm/PKIaaS-vm-prod-us.ova",
                    "UserBucket": {
                        "S3Bucket": "PKIaaS-vm",
                        "S3Key": "PKIaaS-vm-prod-us.ova"
                    }
                }
            ],
            "Status": "completed",
            "Tags": []
        }
    ]
}

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

Status Description Required action
active The import process is still running Rerun the command after 5 minutes to recheck the status
completed The import process has already finished Copy the ImageId value you will later use for Creating an EC2 instance