Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Update docs with variable Format #197

Merged
merged 1 commit into from
Jan 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/data-sources/configuration_variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ description: |-

```terraform
data "env0_environment" "by_name" {
name = "best-env"
name = "best-env"
}

output "environment_project_id" {
value = data.env0_environment.by_name.project_id
}

data "env0_environment" "by_id" {
id = "some_id"
id = "some_id"
}

output "environment_name" {
Expand Down
8 changes: 8 additions & 0 deletions docs/resources/configuration_variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```

<!-- schema generated by tfplugindocs -->
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/resources/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 6 additions & 0 deletions examples/resources/env0_configuration_variable/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}