aws ec2 import-image
To import your virtual machines (VMs) with a console-based experience, you can use the Import virtual machine images to Amazon Web Services template in the Migration Hub Orchestrator console. AWS CLI reference
16 options Its page in the AWS CLI reference
Options
--architectureThe architecture of the virtual machine.--boot-modeThe boot mode of the virtual machine.--client-dataThe client-specific data.--client-tokenThe token to enable idempotency for VM import requests.--descriptionA description string for the import image task.--disk-containersInformation about the disk containers.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--encryptedSpecifies whether the destination AMI of the imported image should be encrypted.--hypervisorThe target hypervisor platform.--kms-key-idAn identifier for the symmetric KMS key to use when creating the encrypted AMI.--license-specificationsThe ARNs of the license configurations.--license-typeThe license type to be used for the Amazon Machine Image (AMI) after importing.--platformThe operating system of the virtual machine.--role-nameThe name of the role to use when not using the default role, 'vmimport'.--tag-specificationsThe tags to apply to the import image task during creation.--usage-operationThe usage operation value.