SungardAS / spotinst-lambda

AWS Lambda functions to Create, Update and Cancel Spotinst resources
4 stars 7 forks source link

Option to roll elastigroup on update #3

Closed kmcgrath closed 8 years ago

kmcgrath commented 8 years ago

When an elastigroup is updated have an option to also roll the group immediately. By default when an elastigroup is updated Spotinst will not change running instances until one needs to be replaced.

kmcgrath commented 8 years ago

The CloudFormation definition will look like the following where group and group_roll will be defined as properties. When UPDATE is called and update_roll is defined the lambda function will execute a roll on a successful group update.

{
  "accessToken": TOKEN
  "requestType": "create",
  "resourceType": "elasticgroup",
  "group": { },
  "group_roll": {}
}
kmcgrath commented 8 years ago

Implemented with PR #7