• The sum of all percentages must be 100%
  • Set up to two decimal digits in the percentage
  • Changes made to the ratio using the Spotinst Console will be overwritten by the contents of activeVersions in your serverless.yml file.

‘Latest’ = Version 3 and Active Version configuration is as follows:

{
  "activeVersions": [
    {
      "version": "$LATEST",
      "percentage": 70
    },
    {
      "version": "2",
      "percentage": 30
    }
  ]
}

This points 70% of the traffic to the Latest version which is currently version 3. Once updating the function, 70% of the traffic will still be routed to ‘Latest’ which will now point to Version 4.

In case of pointing the traffic permanently to version 1, also in the event of Function update, set:

{
  "activeVersions": [
    {
      "version": "1",
      "percentage": 100
    }
  ]
}