I created a task for image export and some time after it was no longer needed I wanted to export wanted to cancel but an error occurs.
This command: aws ec2 cancel-export-task --export-task-id export-i-fgwr77c4
Return this error: A client error (IncorrectState) occurred when calling the CancelExportTask operation: Task can not be canceled at this stage: 'export-i-fgwr77c4'
This command: aws ec2 describes-export-tasks Returns the following: { "ExportTasks": [ { "State": "active", "ExportTaskId": "export-i-fgwr77c4", "InstanceExportDetails": { "InstanceId": "i-07d3c3c3c4c43b5a4", "TargetEnvironment": "vmware" }, "ExportToS3Task": { "DiskImageFormat": "vmdk", "S3Key": "exportexport-i-fgwr77c4.ova", "ContainerFormat": "ova", "S3Bucket": "agtis" } } ] }