Run the following AWS command to import the Cryptographic Security Platform image as an EC2 snapshot.
aws ec2 import-snapshot --disk-container file://container.jsonFor 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": "pki-hub-1.1.0_2025-01-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": "pki-hub-1.1.0_2025-01-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 theSnapshotIdvalue to use it in the next step Creating an AMI from the snapshot.