You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reacted by Chris Edson, Arjen van der Weijden, Piotr Galar, Dev Shah, Joseph LaFreniere and Jaakko Suutarla
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.
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?
However there is a variable runner_os which can only have (linux/windows) as valid inputs.
Set runner_os to linux, set runner_disable_default_labels to true and set these variables appropriately:
userdata_content
ami
runner_extra_labels (set all the labels you need including self-hosted)
instance_types (["mac1.metal"], etc)
minimum_running_time_in_minutes (should be 1440)
The only other place runner_os seems to be used is in the cloudwatch logs configuration, so just use the same paths as linux for logs and it should be fine.
The hardest part about this is what to put into userdata_content. You can start with the linux template, but then you quickly realize is depends on things like svc.sh that you have no familiarity with. Then you say to yourself "sheesh, I have no idea how to actually test this script effectively." It gets daunting real quick, don't ask how I know.
Once you figure out what works in userdata_content you should then back-port your work into the custom AMI so the runners spin up quickly. And at the same time, open a PR against this repo to share your success with everyone else. <3
EDIT: now I see the open PR haha. Wonderful. I'll test it shortly.
Activity
npalm commentedon May 20, 2022
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
We certainly welcome PR's to support MacOS as well.
github-actions commentedon Jun 20, 2022
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.
s0undt3ch commentedon Sep 17, 2022
FYI, besides the AWS Mac VMs costing a lot more, their minimum reservation is 24 hours.
So, ephemeral Mac runners is off the table.
4sudiptodas commentedon Jan 8, 2024
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
npalm commentedon Jan 10, 2024
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?
davidnewhall commentedon Jan 20, 2026
Set
runner_ostolinux, setrunner_disable_default_labelstotrueand set these variables appropriately:userdata_contentamirunner_extra_labels(set all the labels you need includingself-hosted)instance_types(["mac1.metal"], etc)minimum_running_time_in_minutes(should be 1440)The only other place
runner_osseems to be used is in the cloudwatch logs configuration, so just use the same paths as linux for logs and it should be fine.The hardest part about this is what to put into
userdata_content. You can start with the linux template, but then you quickly realize is depends on things likesvc.shthat you have no familiarity with. Then you say to yourself "sheesh, I have no idea how to actually test this script effectively." It gets daunting real quick, don't ask how I know.Once you figure out what works in userdata_content you should then back-port your work into the custom AMI so the runners spin up quickly. And at the same time, open a PR against this repo to share your success with everyone else. <3
EDIT: now I see the open PR haha. Wonderful. I'll test it shortly.
feat: add support for macos runners (#4930)
edersonbrilhante commentedon Aug 5, 2026
@davidnewhall Closing as already implemented