From be8ef7d299b624aee5776882519e0d85becf3cc7 Mon Sep 17 00:00:00 2001 From: Liran Farage <83922349+liranfarage89@users.noreply.github.com> Date: Tue, 21 Dec 2021 13:09:15 +0200 Subject: [PATCH] Chore: add import environment example to docs. (#192) --- docs/resources/environment.md | 7 +++++++ examples/resources/env0_environment/import.sh | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 examples/resources/env0_environment/import.sh diff --git a/docs/resources/environment.md b/docs/resources/environment.md index 2c543eb7..334cea4f 100644 --- a/docs/resources/environment.md +++ b/docs/resources/environment.md @@ -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" +``` diff --git a/examples/resources/env0_environment/import.sh b/examples/resources/env0_environment/import.sh new file mode 100644 index 00000000..1ce68fe3 --- /dev/null +++ b/examples/resources/env0_environment/import.sh @@ -0,0 +1,2 @@ +terraform import env0_environment.by_id d31a6b30-5f69-4d24-937c-22322754934e +terraform import env0_environment.by_name "Example Environment" \ No newline at end of file