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.
# 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}"
}
The following arguments are supported:
installation_id
- (Required) The GitHub app installation id.repository
- (Required) The repository to install the app on.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