Fails to stop spot instance
Summary
I am trying to get a runner 11.4.0 on a raspberry pi to use docker+machine to start spot instances on amazonec2. I am getting lots of these messages:
Oct 25 13:36:13 rpi-slave1 gitlab-runner[21732]: ERROR: UnsupportedOperation: The instance 'i-0d76f28ed5b830017' is a spot instance and may not be stopped. name=runner-671e280b-rpi-slave1-gitlab-1540465821-4d3a115a operation=stop
Steps to reproduce
It's hard to explain how to get this except that this should never work on spot instances.
Version: 11.4.0
Git revision: 8af42251
Git branch: 11-4-stable
GO version: go1.8.7
Built: 2018-10-22T10:06:36+0000
OS/Arch: linux/arm
I would guess someone should check the code where you're trying to stop instances, and if it's a spot instance, then it should be terminated instead (I think that's the right think to do with spot instances, but I am not an aws expert)