Skip to content

Commit

Permalink
Chore: add import environment example to docs. (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
liranfarage89 committed Dec 21, 2021
1 parent d36c056 commit be8ef7d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/resources/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,11 @@ Optional:
- **schema_type** (String) the type the variable must be of
- **type** (String) variable type (allowed values are: terraform, environment)

## Import

Import is supported using the following syntax:

```shell
terraform import env0_environment.by_id d31a6b30-5f69-4d24-937c-22322754934e
terraform import env0_environment.by_name "Example Environment"
```
2 changes: 2 additions & 0 deletions examples/resources/env0_environment/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
terraform import env0_environment.by_id d31a6b30-5f69-4d24-937c-22322754934e
terraform import env0_environment.by_name "Example Environment"

0 comments on commit be8ef7d

Please sign in to comment.