This resource allows you to create and manage a GitHub enterprise organization.
resource "github_enterprise_organization" "org" {
enterprise_id = data.github_enterprise.enterprise.id
name = "some-awesome-org"
display_name = "Some Awesome Org"
description = "Organization created with terraform"
billing_email = "jon@winteriscoming.com"
admin_logins = [
"jon-snow"
]
}
enterprise_id
- (Required) The ID of the enterprise.name
- (Required) The name of the organization.description
- (Optional) The description of the organization.display_name
- (Optional) The display name of the organization.billing_email
- (Required) The billing email address.admin_logins
- (Required) List of organization owner usernames.The following additional attributes are exported:
id
- The node ID of the organization for use with the v4 API.database_id
- The ID of the organization.GitHub Enterprise Organization can be imported using the slug
of the enterprise, combined with the orgname
of the organization, separated by a /
character.
$ terraform import github_enterprise_organization.org enterp/some-awesome-org