Cancel an import image task - VM Import/Export

Cancel an import image task

After you start an image import task using VM Import/Export, you can cancel the import operation if needed.

To describe your import image tasks, see Monitor an import image task.

AWS CLI
To cancel an import image task

Use the cancel-import-task command.

aws ec2 cancel-import-task \ --import-task-id import-ami-1234567890abcdef0
PowerShell
To cancel an import image task

Use the Stop-EC2ImportTask cmdlet.

Stop-EC2ImportTask ` -ImportTaskId import-ami-1234567890abcdef0