The format of the notification content (JSON Format – Key+Value). with the following supported variables: %instance-id%%event%%resource-id%%resource-name%

Default content:

{
 "event": "<event>",
 "instanceId": "<instance-id>",
 "resourceId": "<resource-id>",
 "resourceName": "<resource-name>"
}

Custom content format example:

{
 "event": "%event%",
 "resourceId": "%resource-id%",
 "resourceName": "%resource-name%",
 "myCustomeKey": "My content is set here",
 "AWS_Account_ID": "1234567890"
}

Instance Launch:

{
 "default": "spotinst:notification:instance",
 "event": "AWS_EC2_INSTANCE_LAUNCH",
 "instanceId": "i-0d1c09565f353e90e",
 "resourceId": "sig-675240da",
 "resourceName": "ElasticSearch_Test"
}

Instance Terminate:

{
 "default": "spotinst:notification:instance",
 "event": "AWS_EC2_INSTANCE_TERMINATE",
 "instanceId": "i-0d1c09565f353e90e",
 "resourceId": "sig-675240da",
 "resourceName": "ElasticSearch_Test"
}

Roll Finished:

{
 "default": "spotinst:notification:group",
 "event": "GROUP_ROLL_FINISHED",
 "groupId": "sig-9eb96b3a",
 "groupName": "ShiriTest-env-2",
 "message": "RollId:sbgd-44b438fb"
}

Roll Failed:

{
 "default": "spotinst:notification:group",
 "event": "GROUP_ROLL_FAILED",
 "groupId": "sig-9eb96b3a",
 "groupName": "ShiriTest-env-2",
 "errorMessage": "RollId:sbgd-bf1a4fff, There were too many unhealthy instances in batch 1"
}