Skip to content

Commit

Permalink
Fix: changing variable scope (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Apr 17, 2022
1 parent 6686b1c commit 94ac04b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions env0/resource_configuration_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,28 @@ func resourceConfigurationVariable() *schema.Resource {
Description: "create the variable under this project, not globally",
Optional: true,
ConflictsWith: []string{"template_id", "environment_id"},
ForceNew: true,
},
"template_id": {
Type: schema.TypeString,
Description: "create the variable under this template, not globally",
Optional: true,
ConflictsWith: []string{"project_id", "environment_id"},
ForceNew: true,
},
"environment_id": {
Type: schema.TypeString,
Description: "create the variable under this environment, not globally",
Optional: true,
ConflictsWith: []string{"template_id", "project_id", "is_required", "is_read_only"},
ForceNew: true,
},
"type": {
Type: schema.TypeString,
Description: "default 'environment'. set to 'terraform' to create a terraform variable",
Optional: true,
Default: "environment",
ForceNew: true,
},
"enum": {
Type: schema.TypeList,
Expand Down

0 comments on commit 94ac04b

Please sign in to comment.