terraform-aws-gitlab-runner icon indicating copy to clipboard operation
terraform-aws-gitlab-runner copied to clipboard

Specify multiple instance_types for docker_machine_instance_type

Open jschelfh-be opened this issue 3 years ago • 3 comments
trafficstars

Can docker_machine_instance_type be made a list so that you can specify multiple instance types, thus increasing the change of getting a spot instance. Currently configured using 1AZ, it happened several times that I was not able to get an EC2 of type t3.medium, but other spot instance types were available

jschelfh-be avatar Dec 07 '21 10:12 jschelfh-be

Not possible in this project as the docker machine driver amazonec2 has to be changed. I found some old source code and the variable is a simple string not an array.

kayman-mk avatar Dec 09 '21 13:12 kayman-mk

Would be a great feature, but not supported well by the underlying frameworks. A lot of work was done in this PR to make it possible #249

npalm avatar Dec 09 '21 23:12 npalm

Yeah, that's another thing which could work. Spawn agents with runners of different EC2 types. Not exactly what ylu want, but 80%.

I suggest to use at least 2 AZs. Just in case.

kayman-mk avatar Dec 10 '21 22:12 kayman-mk

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

github-actions[bot] avatar Mar 18 '23 02:03 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

github-actions[bot] avatar May 18 '23 02:05 github-actions[bot]

This issue was closed because it has been stalled for 15 days with no activity.

github-actions[bot] avatar Jun 02 '23 02:06 github-actions[bot]