diodonfrost/terraform-aws-lambda-scheduler-stop-start

ec2:TerminateSpotInstances Unrecognized actions

littlejo opened this issue · 1 comments

Hello,

I try this module but there is a small bug. It creates iam roles with a bad action TerminateSpotInstances. So I suppose this action is useless.

Best regards

Hello,

You can't stop the Spot Instance associated with a one-time Spot Instance request. You can only stop Spot Instances associated with persistent Spot Instance requests.

But sometime we need to terminate spot instances in mixed autoscaling group and stop this on-demand instance.

That why I add this IAM permission in this policy.