github_app_installation_repository

This resource manages relationships between app installations and repositories in your GitHub organization.

Creating this resource installs a particular app on a particular repository.

The app installation and the repository must both belong to the same organization on GitHub. Note: you can review your organization's installations by the following the instructions at this link.

Example Usage

# Create a repository.
resource "github_repository" "some_repo" {
  name = "some-repo"
}

resource "github_app_installation_repository" "some_app_repo" {
  # The installation id of the app (in the organization).
  installation_id    = "1234567"
  repository         = "${github_repository.some_repo.name}"
}

Argument Reference

The following arguments are supported:

Import

GitHub App Installation Repository can be imported using an ID made up of installation_id:repository, e.g.

$ terraform import github_app_installation_repository.terraform_repo 1234567:terraform