| layout | github |
|---|---|
| page_title | GitHub: github_organization_network_configuration |
| description | Creates and manages hosted compute network configurations for a GitHub organization. |
This resource allows you to create and manage hosted compute network configurations for a GitHub Organization. Network configurations allow GitHub-hosted compute services, such as Actions hosted runners, to connect to your private network resources.
~> Note: This resource is organization-only and is available for GitHub Enterprise Cloud organizations. See the GitHub documentation for more information.
resource "github_organization_network_configuration" "example" {
name = "my-network-config"
compute_service = "actions"
network_settings_ids = ["23456789ABCDEF1"]
}The following arguments are supported:
-
name- (Required) The name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9,.,-, and_. -
compute_service- (Optional) The hosted compute service to use for the network configuration. Can be one ofnoneoractions. Defaults tonone. -
network_settings_ids- (Required) An array containing exactly one network settings ID. Network settings resources are configured separately through your cloud provider. A network settings resource can only be associated with one network configuration at a time.
In addition to the arguments above, the following attributes are exported:
-
id- The ID of the network configuration. -
created_on- The timestamp when the network configuration was created.
- This resource can only be used with organization accounts.
- GitHub currently allows exactly one
network_settings_idsvalue per organization network configuration. - The
network_settings_idsvalue must reference an existing hosted compute network settings resource configured outside this provider.
Organization network configurations can be imported using the network configuration ID:
terraform import github_organization_network_configuration.example 1234567890ABCDEFThe network configuration ID can be found using the list hosted compute network configurations for an organization API.