Skip to content

Commit

Permalink
Chore: env0_environment.configuration cannot coexist with env0_config…
Browse files Browse the repository at this point in the history
…uration_variable on the same environment (#767)
  • Loading branch information
TomerHeber authored Dec 17, 2023
1 parent 5d8d820 commit 319ffbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions env0/resource_configuration_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func resourceConfigurationVariable() *schema.Resource {
ReadContext: resourceConfigurationVariableRead,
UpdateContext: resourceConfigurationVariableUpdate,
DeleteContext: resourceConfigurationVariableDelete,
Description: "Note: do not use with an environment resource that has it's configuration variables defined in it's 'configuration' field (see env0_environment_resource -> configuration)",

Importer: &schema.ResourceImporter{StateContext: resourceConfigurationVariableImport},

Expand Down
4 changes: 2 additions & 2 deletions env0/resource_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func resourceEnvironment() *schema.Resource {
},
"configuration": {
Type: schema.TypeList,
Description: "terraform and environment variables for the environment",
Description: "terraform and environment variables for the environment. Note: do not use with 'env0_configuration_variable' resource",
Optional: true,
Elem: configurationSchema,
},
Expand Down Expand Up @@ -310,7 +310,7 @@ func resourceEnvironment() *schema.Resource {
},
"configuration": {
Type: schema.TypeList,
Description: "sub environment configuration variables",
Description: "sub environment configuration variables. Note: do not use with 'env0_configuration_variable' resource",
Optional: true,
Elem: configurationSchema,
},
Expand Down

0 comments on commit 319ffbf

Please sign in to comment.