fbpx

Create an Ocean Launch Spec with the following CF template

The full body attributes list is available on our main creation page

Request

Body
Copied!
Downloaded!
{
  "Resources": {
    "SpotinstOcean": {
      "Type": "Custom::oceanLaunchSpec",
      "Properties": {
        "ServiceToken": "arn:aws:lambda:${Region}:178579023202:function:spotinst-cloudformation",
        "accessToken": "YOUR TOKEN",
        "accountId": "YOUR ACCOUNT ID",
        "oceanLaunchSpec": {
          "oceanId": "",
          "imageId": "",
          "userData": "",
          "labels": [
            {
              "key": "",
              "value": ""
            }
          ],
          "taints": [
            {
              "key": "",
              "value": "",
              "effect": ""
            }
          ],
          "autoScale": {
            "headrooms": [
              {
                "cpuPerUnit": 1000,
                "memoryPerUnit": 2048,
                "gpuPerUnit": 0,
                "numOfUnits": 4
              }
            ]
          }
        }
      }
    }
  }
}