diff --git a/website/source/docs/import/importability.html.md b/website/source/docs/import/importability.html.md index 8c5ed040ca..cd0a97224e 100644 --- a/website/source/docs/import/importability.html.md +++ b/website/source/docs/import/importability.html.md @@ -140,6 +140,17 @@ To make a resource importable, please see the * fastly_service_v1 +### Github + +* github_branch_protection +* github_issue_label +* github_membership +* github_repository +* github_repository_collaborator +* github_team +* github_team_membership +* github_team_repository + ### Google * google_bigquery_dataset diff --git a/website/source/docs/providers/github/r/branch_protection.html.markdown b/website/source/docs/providers/github/r/branch_protection.html.markdown index 4b208bc3b9..8feead2cdc 100644 --- a/website/source/docs/providers/github/r/branch_protection.html.markdown +++ b/website/source/docs/providers/github/r/branch_protection.html.markdown @@ -70,3 +70,11 @@ The following arguments are supported: * `teams`: (Optional) The list of team slugs with push access. `restrictions` is only available for organization-owned repositories. + +## Import + +Github Branch Protection can be imported using an id made up of `repository:branch`, e.g. + +``` +$ terraform import github_branch_protection.terraform terraform:master +``` \ No newline at end of file diff --git a/website/source/docs/providers/github/r/issue_label.html.markdown b/website/source/docs/providers/github/r/issue_label.html.markdown index 216ed2bfe9..b94b82d79a 100644 --- a/website/source/docs/providers/github/r/issue_label.html.markdown +++ b/website/source/docs/providers/github/r/issue_label.html.markdown @@ -41,3 +41,11 @@ The following arguments are supported: * `name` - (Required) The name of the label. * `color` - (Required) A 6 character hex code, **without the leading #**, identifying the color of the label. + +## Import + +Github Issue Labels can be imported using an id made up of `repository:name`, e.g. + +``` +$ terraform import github_issue_label.panic_label terraform:panic +``` \ No newline at end of file diff --git a/website/source/docs/providers/github/r/membership.html.markdown b/website/source/docs/providers/github/r/membership.html.markdown index a2976c3e4c..3c04b6fb96 100644 --- a/website/source/docs/providers/github/r/membership.html.markdown +++ b/website/source/docs/providers/github/r/membership.html.markdown @@ -31,3 +31,12 @@ The following arguments are supported: * `username` - (Required) The user to add to the organization. * `role` - (Optional) The role of the user within the organization. Must be one of `member` or `admin`. Defaults to `member`. + + +## Import + +Github Membership can be imported using an id made up of `organization:username`, e.g. + +``` +$ terraform import github_membership.member hashicorp:someuser +``` \ No newline at end of file diff --git a/website/source/docs/providers/github/r/repository_collaborator.html.markdown b/website/source/docs/providers/github/r/repository_collaborator.html.markdown index 4bca5b6e52..ad1c5386de 100644 --- a/website/source/docs/providers/github/r/repository_collaborator.html.markdown +++ b/website/source/docs/providers/github/r/repository_collaborator.html.markdown @@ -43,3 +43,12 @@ The following arguments are supported: * `username` - (Required) The user to add to the repository as a collaborator. * `permission` - (Optional) The permission of the outside collaborator for the repository. Must be one of `pull`, `push`, or `admin`. Defaults to `push`. + + +## Import + +Github Repository Collaborators can be imported using an id made up of `repository:username`, e.g. + +``` +$ terraform import github_repository_collaborator.collaborator terraform:someuser +``` \ No newline at end of file diff --git a/website/source/docs/providers/github/r/team.html.markdown b/website/source/docs/providers/github/r/team.html.markdown index a4814370c9..aa99e394ec 100644 --- a/website/source/docs/providers/github/r/team.html.markdown +++ b/website/source/docs/providers/github/r/team.html.markdown @@ -38,3 +38,11 @@ The following arguments are supported: The following attributes are exported: * `id` - The ID of the created team. + +## Import + +Github Teams can be imported using the github team Id e.g. + +``` +$ terraform import github_team.core 1234567 +``` \ No newline at end of file diff --git a/website/source/docs/providers/github/r/team_membership.html.markdown b/website/source/docs/providers/github/r/team_membership.html.markdown index 3722c3b8c5..80bd0c4aba 100644 --- a/website/source/docs/providers/github/r/team_membership.html.markdown +++ b/website/source/docs/providers/github/r/team_membership.html.markdown @@ -44,3 +44,11 @@ The following arguments are supported: * `username` - (Required) The user to add to the team. * `role` - (Optional) The role of the user within the team. Must be one of `member` or `maintainer`. Defaults to `member`. + +## Import + +Github Team Membership can be imported using an id made up of `teamid:username`, e.g. + +``` +$ terraform import github_team_membership.member 1234567:someuser +``` \ No newline at end of file diff --git a/website/source/docs/providers/github/r/team_repository.html.markdown b/website/source/docs/providers/github/r/team_repository.html.markdown index 982aeef2fd..9995299056 100644 --- a/website/source/docs/providers/github/r/team_repository.html.markdown +++ b/website/source/docs/providers/github/r/team_repository.html.markdown @@ -46,3 +46,12 @@ The following arguments are supported: * `repository` - (Required) The repository to add to the team. * `permission` - (Optional) The permissions of team members regarding the repository. Must be one of `pull`, `push`, or `admin`. Defaults to `pull`. + + +## Import + +Github Team Membership can be imported using an id made up of `teamid:repository`, e.g. + +``` +$ terraform import github_team_repository.terraform_repo 1234567:terraform +``` \ No newline at end of file