terraform-aws-github-runner
terraform-aws-github-runner copied to clipboard
macOS Runners
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!
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.
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.
FYI, besides the AWS Mac VMs costing a lot more, their minimum reservation is 24 hours. So, ephemeral Mac runners is off the table.
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
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?