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

macOS Runners

Open ChrisEdson opened this issue 2 years ago • 5 comments

Hi there -

Is it possible to support macOS runners using this module?

Technically, GitHub states that it is possible - and AWS also has mac instances that it can spin up.

Thanks!

ChrisEdson avatar May 19 '22 17:05 ChrisEdson

Yes this should certainly be possible. We have crafted the module for Amazon Linux back in the days. Later support was added for multiple architectures, linux distros, and windows. All with the great support of the community.

Differences betwoon OS are in general

  • The base AMI (AWS)
  • The launch script to setup the instance and install the runner. Aka the user_data script

We certainly welcome PR's to support MacOS as well.

npalm avatar May 20 '22 20:05 npalm

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.

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

FYI, besides the AWS Mac VMs costing a lot more, their minimum reservation is 24 hours. So, ephemeral Mac runners is off the table.

s0undt3ch avatar Sep 17 '22 09:09 s0undt3ch

We are trying to re-use the module for macos runners, by changing the ami filter and user data. However there is a variable runner_os which can only have (linux/windows) as valid inputs. How do we workaround this? any suggestions @npalm

4sudiptodas avatar Jan 08 '24 02:01 4sudiptodas

Would be great when you are able to spport macos. I think it requires some refactoring the terraform module to allow multiple values. As well the model the scal-up is creating and scale-down is destroying is not fitting the model for OSX runners. How are you approaching this?

npalm avatar Jan 10 '24 22:01 npalm