This resource manages relationships between app installations and repositories in your GitHub organization.
Creating this resource installs a particular app on multiple repositories.
The app installation and the repositories must all belong to the same organization on GitHub. Note: you can review your organization's installations by the following the instructions at this link.
# Create some repositories.
resource "github_repository" "some_repo" {
name = "some-repo"
}
resource "github_repository" "another_repo" {
name = "another-repo"
}
resource "github_app_installation_repositories" "some_app_repos" {
# The installation id of the app (in the organization).
installation_id = "1234567"
selected_repositories = [github_repository.some_repo.name, github_repository.another_repo.name]"
}
The following arguments are supported:
installation_id
- (Required) The GitHub app installation id.selected_repositories
- (Required) A list of repository names to install the app on.GitHub App Installation Repositories can be imported
using an ID made up of installation_id
, e.g.
$ terraform import github_app_installation_repositories.some_app_repos 1234567