integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
907 stars 748 forks source link

Add Capability to Add Runners to Runner_Group by Name #2370

Open bfagerhed2 opened 2 months ago

bfagerhed2 commented 2 months ago

Describe the need

I am writing to request a potential enhancement to the current functionality of the GitHub provider in Terraform. After studying the documentation available at https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_runner_group, it appears that there is no current functionality to add runners to runner groups by their name. This necessitates manual addition of runners post group creation, which is a cumbersome and time-consuming process. I would like to propose the development of this feature to improve user experience and provide more flexibility in managing runners. Automating runner addition would streamline operations, reduce human error, and enhance efficiency, especially in larger systems with numerous runner groups and runners.

This feature could look like:

resource "github_actions_runner_group" "example" { name = "example"

runners {
    name = ["runner1", "runner2", "runner3"]
}

}

This proposed syntax would provide a more intuitive and user-friendly way to manage runners in a runner group and would align with the way other resources in Terraform are managed. It would eliminate the need for manual runner addition, making the management of runner groups fully automatized. I believe the addition of this feature would greatly benefit users of the Terraform GitHub provider by adding an additional layer of flexibility and control in managing runners. It would enable users to manage all aspects of runner groups from within the code, making the process more seamless and efficient.

SDK Version

No response

API Version

latest

Relevant log output

NA

Code of Conduct

kfcampbell commented 2 months ago

Is there an API for this behavior? I can't find one in our docs; right now I'm able to find manual instructions only.

wrzemian commented 2 months ago

Add a self-hosted runner to a group for an enterprise - there is an option to list, set, add and remove runners for an enterprise, but the github_enterprise_actions_runner_group resource doesn't use that