---
title: "Import Fargate To Existing Ocean Cluster"
method: POST
path: "/ocean/aws/ecs/cluster/{oceanClusterId}/fargateMigration"
tags: ["Ocean ECS"]
---

# Import Fargate To Existing Ocean Cluster

`POST /ocean/aws/ecs/cluster/{oceanClusterId}/fargateMigration`

## Request

- Base URL: `https://api.spotinst.io`
- URL: `https://api.spotinst.io/ocean/aws/ecs/cluster/{oceanClusterId}/fargateMigration`
- Auth: HTTP bearer

Import a Fargate service into an existing Ocean ECS cluster.
Upon Fargate service import, Spot clones the selected Fargate services and runs them with the same VPC & Subnet settings on EC2 spot Instances.
Ocean will automatically and seamlessly predict and replace spot instances before they are interrupted, ensuring the uptime of the cluster and providing cost-savings of up to 90% over Fargate-enabled ECS clusters.

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` (unresolved $ref)
- `#/paths/~1ocean~1aws~1ecs~1cluster~1%7BoceanClusterId%7D/get/parameters/1` (unresolved $ref)

## Request body

- object
  - `services` string[]: List of Fargate services by their names. Must contain at least one service.
  - `simpleNewServiceNames` boolean: Flag to align imported service names in the following format: sfm_

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/spot/apis/spot-by-flexera-api.md) - [All operations](https://skmtc.dev/spot/apis/spot-by-flexera-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spot/apis/spot-by-flexera-api/revisions/f7e206fa6474?raw)
