Import an OVA to AWS
Import the OVA using previously created roles.
AWS requires the use of the vmimport identity to import a VM.
There is no AWS Console equivalent to the command line import-image command.
Using the vmimport identity to convert the OVA image to an AMI image:
Create a json file representing the locations for the containers used during the import.Copy
BUCKET_NAME with the bucket name. For example, access-gateway-bucket
DESCRIPTION with an appropriate description. For example, Okta Access Gateway
FILE_NAME with the specific name of the OVA file. For example Okta-AccessGateway.ova
Begin the import process using a command similar to:Copy
aws ec2 import-image --description "Okta Access Gateway" --license-type "BYOL" --disk-containers "file://~/Downloads/containers.json"
Examine the output of command and note the task id associated with the import process.Copy
Examine the progress of the import using the task id :Copy
aws ec2 describe-import-image-tasks --import-task-ids TASK_ID
Where TASK_ID is the value from the prior step. For example:Copy
aws ec2 describe-import-image-tasks --import-task-ids import-ami-08800a79da64acae7
Import progress is noted in the Progress json element and represents a percentage from 0-100%.
Monitor the import until it reaches status completed. For example:Copy
Note the ImageId field is used to confirm the image import in the AWS console.
Confirm that the import completed in the AWS console:
Return to the AWS console
Navigate to Services > EC2.
In the left hand navigation pane select Images > AMI.
Examine the image list, searching for the image with matching id.
For more information on uploading files to S3 buckets see Putting an Object into an S3 bucket in the Amazon Web Services documentation.
For more information on the AWS S3 cp command see S3 cp command in the Amazon Web Service documentation