---
title: "Import Multiple Instances from AWS"
method: POST
path: "/aws/ec2/managedInstance/migration/bulk"
tags: ["Stateful Node AWS"]
---

# Import Multiple Instances from AWS

`POST /aws/ec2/managedInstance/migration/bulk`

<ul> <li>Import multiple stateful instances from AWS into Stateful Node, preserving both instance data and persistence settings.
<li>This call initiates migration for all instances and returns the associated migration IDs.
<li>To check the status of multiple migrations, use the `Get Multiple Instance Migration Status` call.
<li>Note: The response contains a `failures` field. In the event that one or more instances failed to migrate, this field will provide the corresponding resource IDs and error messages. If all migrations were successful, this field will return an empty list. <ul>

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref

## Request body

- object
  - `migrations` object[], required — List of Migration requests
    - `shouldKeepPrivateIp` boolean — Set whether the instance should keep its private ip or not
    - `shouldKeepMetadataOptions` boolean — Set whether the instance should keep its metadataOptions or not
    - `originalInstanceId` string, required — The instance ID on AWS
    - `region` string, required — Set instance's region
    - `shouldTerminateInstance` boolean — Set true or false whether to terminate the instance in AWS. Note: If shouldKeepPrivateIp is true, then shouldTerminateInstance must be true. Otherwise an error will be returned.
    - `managedInstanceName` string — Set Stateful Node name
    - `product` string — Set instance's product
    - `spotInstanceTypes` string[] — List of possible instance types for the Stateful Node
    - `availabilityZones` object[] — List of availability zones for the Stateful Node. Should exist only if shouldKeepPrivateIp is false.
      - `name` string — Availability Zone name
      - `subnetIds` string[]

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
