Cancel an export 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 export image task

If you need to, you can use the following cancel-export-task command to cancel the export of an image that is in progress. For more information about how to retrieve details about active export image tasks, see Monitor an export image task.

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

If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.