Skip to content

Commit 71fb670

Browse files
Merge pull request #203 from Infisical/daniel/further-import-support
fix: import docs for project and project_environemnt
2 parents 87996b7 + 38a643f commit 71fb670

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

docs/resources/project.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,12 @@ resource "infisical_project" "kms-project" {
7676

7777
- `id` (String) The ID of the project
7878
- `last_updated` (String)
79+
80+
## Import
81+
82+
Import is supported using the following syntax:
83+
84+
```shell
85+
# This will import the project by the project ID
86+
terraform import infisical_project.example <project_id>
87+
```

docs/resources/project_environment.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,12 @@ resource "infisical_project_environment" "pre-prod" {
6262
### Read-Only
6363

6464
- `id` (String) The ID of the environment
65+
66+
## Import
67+
68+
Import is supported using the following syntax:
69+
70+
```shell
71+
# This will import the project environment by the project environment ID
72+
terraform import infisical_project_environment.example <project_environment_id>
73+
```
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This will import the project by the project ID
2+
terraform import infisical_project.example <project_id>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This will import the project environment by the project environment ID
2+
terraform import infisical_project_environment.example <project_environment_id>

0 commit comments

Comments
 (0)