Enterprise Organization
This resource allows you to create and manage a GitHub enterprise organization.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const org = new github.EnterpriseOrganization("org", {
enterpriseId: enterprise.id,
name: "some-awesome-org",
displayName: "Some Awesome Org",
description: "Organization created with terraform",
billingEmail: "jon@winteriscoming.com",
adminLogins: ["jon-snow"],
});
Content copied to clipboard
import pulumi
import pulumi_github as github
org = github.EnterpriseOrganization("org",
enterprise_id=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"])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() =>
{
var org = new Github.EnterpriseOrganization("org", new()
{
EnterpriseId = enterprise.Id,
Name = "some-awesome-org",
DisplayName = "Some Awesome Org",
Description = "Organization created with terraform",
BillingEmail = "jon@winteriscoming.com",
AdminLogins = new[]
{
"jon-snow",
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-github/sdk/v6/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := github.NewEnterpriseOrganization(ctx, "org", &github.EnterpriseOrganizationArgs{
EnterpriseId: pulumi.Any(enterprise.Id),
Name: pulumi.String("some-awesome-org"),
DisplayName: pulumi.String("Some Awesome Org"),
Description: pulumi.String("Organization created with terraform"),
BillingEmail: pulumi.String("jon@winteriscoming.com"),
AdminLogins: pulumi.StringArray{
pulumi.String("jon-snow"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.EnterpriseOrganization;
import com.pulumi.github.EnterpriseOrganizationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var org = new EnterpriseOrganization("org", EnterpriseOrganizationArgs.builder()
.enterpriseId(enterprise.id())
.name("some-awesome-org")
.displayName("Some Awesome Org")
.description("Organization created with terraform")
.billingEmail("jon@winteriscoming.com")
.adminLogins("jon-snow")
.build());
}
}
Content copied to clipboard
resources:
org:
type: github:EnterpriseOrganization
properties:
enterpriseId: ${enterprise.id}
name: some-awesome-org
displayName: Some Awesome Org
description: Organization created with terraform
billingEmail: jon@winteriscoming.com
adminLogins:
- jon-snow
Content copied to clipboard
Import
GitHub Enterprise Organization can be imported using the slug
of the enterprise, combined with the orgname
of the organization, separated by a /
character.
$ pulumi import github:index/enterpriseOrganization:EnterpriseOrganization org enterp/some-awesome-org
Content copied to clipboard
Properties
Link copied to clipboard
List of organization owner usernames.
Link copied to clipboard
The billing email address.
Link copied to clipboard
The ID of the organization.
Link copied to clipboard
The description of the organization.
Link copied to clipboard
The display name of the organization.
Link copied to clipboard
The ID of the enterprise.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard