diff --git a/docs/data-sources/configuration_variable.md b/docs/data-sources/configuration_variable.md index 77244000..5e33b0d0 100644 --- a/docs/data-sources/configuration_variable.md +++ b/docs/data-sources/configuration_variable.md @@ -39,6 +39,7 @@ output "aws_default_region" { ### Read-Only - **enum** (List of String) possible values of this variable +- **format** (String) specifies the format of the configuration value (HCL/JSON) - **is_sensitive** (Boolean) is the variable defined as sensitive - **scope** (String) scope of the variable - **value** (String, Sensitive) value stored in the variable diff --git a/docs/data-sources/environment.md b/docs/data-sources/environment.md index e0960bc2..b3e50c42 100644 --- a/docs/data-sources/environment.md +++ b/docs/data-sources/environment.md @@ -14,7 +14,7 @@ description: |- ```terraform data "env0_environment" "by_name" { - name = "best-env" + name = "best-env" } output "environment_project_id" { @@ -22,7 +22,7 @@ output "environment_project_id" { } data "env0_environment" "by_id" { - id = "some_id" + id = "some_id" } output "environment_name" { diff --git a/docs/resources/configuration_variable.md b/docs/resources/configuration_variable.md index 89714d0e..931c836f 100644 --- a/docs/resources/configuration_variable.md +++ b/docs/resources/configuration_variable.md @@ -27,6 +27,13 @@ resource "env0_configuration_variable" "drop_down" { "second option" ] } + +resource "env0_configuration_variable" "json_variable" { + name = "organization_tf_json_var" + type = "terraform" + value = "{ \"a\": 1234 }" + format = "JSON" +} ``` @@ -42,6 +49,7 @@ resource "env0_configuration_variable" "drop_down" { - **description** (String) a description of the variables - **enum** (List of String) limit possible values to values from this list - **environment_id** (String) create the variable under this environment, not globally +- **format** (String) specifies the format of the configuration value (HCL/JSON) - **id** (String) The ID of this resource. - **is_sensitive** (Boolean) is the variable sensitive, defaults to false - **project_id** (String) create the variable under this project, not globally diff --git a/docs/resources/environment.md b/docs/resources/environment.md index 334cea4f..f8788edb 100644 --- a/docs/resources/environment.md +++ b/docs/resources/environment.md @@ -68,6 +68,7 @@ Optional: - **description** (String) description for the variable - **is_sensitive** (Boolean) should the variable value be hidden - **schema_enum** (List of String) a list of possible variable values +- **schema_format** (String) the variable format: - **schema_type** (String) the type the variable must be of - **type** (String) variable type (allowed values are: terraform, environment) diff --git a/examples/resources/env0_configuration_variable/resource.tf b/examples/resources/env0_configuration_variable/resource.tf index 399e789d..43beb2ec 100644 --- a/examples/resources/env0_configuration_variable/resource.tf +++ b/examples/resources/env0_configuration_variable/resource.tf @@ -13,3 +13,9 @@ resource "env0_configuration_variable" "drop_down" { ] } +resource "env0_configuration_variable" "json_variable" { + name = "organization_tf_json_var" + type = "terraform" + value = "{ \"a\": 1234 }" + format = "JSON" +}