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

If you need to cancel an active import task, use the cancel-import-task command. For more information about how to retrieve details about active import image tasks, see Monitor an import image task.

aws ec2 cancel-import-task --import-task-id import-ami-1234567890abcdef0