POSThttps://api.spotinst.io/ocean/aws/ecs/cluster/{OCEAN_ID}/fargateMigration?accountId={ACCOUNT_ID}

Import a Fargate service into an existing Ocean ECS cluster.

Upon Fargate service import, Spotinst 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 replaces 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.

URL Parameters

Parameter Type Description
OCEAN_ID * String

Ocean ECS cluster ID

ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Example: act-123abc
Request

Headers
{
  "Authorization": "Bearer ${token}",
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "services": [
    "service_1",
    "service_2"
  ],
  "simpleNewServiceNames": false
}
Attribute Type Description
Services * Array<String>

List of Fargate services by their names. Must contain at least one service

simpleNewServiceNames Boolean

Flag to align imported services names in the following format: sfm_

Default: false
Response - 200

Body
Copied!
Downloaded!
{
	"id": "efm-d235b4d8",
    "oceanId": "o-fgdfgdf",
    "state": "STARTING",
    "config": {
    "services": [
		"service_1",
		"service_2"
		],
    "simpleNewServiceNames": true
    }
}