---
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`

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.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)
