Exports a running or stopped instance to an Amazon S3 bucket.
For information about the supported operating systems, image formats, and known limitations
for the types of instances you can export, see Exporting an instance as a VM Using VM Import/Export
in the VM Import/Export User Guide.
example
Use a bare-bones client and the command you need to make an API call.
Exports a running or stopped instance to an Amazon S3 bucket.
For information about the supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an instance as a VM Using VM Import/Export in the VM Import/Export User Guide.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, CreateInstanceExportTaskCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, CreateInstanceExportTaskCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new CreateInstanceExportTaskCommand(input); const response = await client.send(command);
CreateInstanceExportTaskCommandInput for command's
input
shape.CreateInstanceExportTaskCommandOutput for command's
response
shape.config for EC2Client's
config
shape.