How to automate the creation of GitLab Runners
Jul 6, 2023Darren Eastman

Summary
This post introduces a new workflow for automating GitLab Runner creation and registration. It details the deprecation of legacy registration tokens and the adoption of API-based runner creation using access tokens (personal, group, or project). The post outlines steps for creating these tokens, using them to create runner configurations via a POST REST API endpoint, and automating the installation and registration process using infrastructure as code (Terraform) and cloud-init scripts. It also highlights the introduction of reusable runner configurations, which group multiple runners with identical settings under a single configuration in the UI, improving fleet management and visibility.