Cancel an import image task - VM Import/Export
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.

Amazon 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