Skip to content

Commit 552f225

Browse files
authored
github_repository_environment: Add Import instructions to docs (#927)
1 parent e05d2ab commit 552f225

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

website/docs/r/repository_environment.html.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,12 @@ The `deployment_branch_policy` block supports the following:
5959
* `protected_branches` - (Required) Whether only branches with branch protection rules can deploy to this environment.
6060

6161
* `custom_branch_policies` - (Required) Whether only branches that match the specified name patterns can deploy to this environment.
62+
63+
64+
## Import
65+
66+
GitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.
67+
68+
```
69+
$ terraform import github_repository_environment.daily terraform:daily
70+
```

0 commit comments

Comments
 (0)