ec2-autoscale-reactor
ec2-autoscale-reactor copied to clipboard
Adjustment for Salt 2017.7
Just in case someone needs this, to make this reactor compartible with salt 2017, code starting from line https://github.com/saltstack-formulas/ec2-autoscale-reactor/blob/master/ec2-autoscale/init.sls#L86 should look like this:
vm_ = __opts__.get('ec2.autoscale', {})
vm_['reactor'] = True
vm_['instances'] = instance_id
vm_['instance_id'] = instance_id
# Fire off an event to wait for the machine
return {
'ec2_autoscale_launch': {
'runner.cloud.create': [{'kwarg': vm_}]
}
}