Skip to content

Commit

Permalink
Update config var description docs (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
eranelbaz committed Nov 1, 2021
1 parent dcfbd50 commit 81f8649
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docs/data-sources/configuration_variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ output "aws_default_region" {
### Optional

- **deployment_log_id** (String) search for the variable under this deployment log, not globally
- **description** (String) a description of the variable
- **environment_id** (String) search for the variable under this environment, not globally
- **id** (String) id of the configuration variable
- **name** (String) the name of the configuration variable
Expand All @@ -40,6 +41,6 @@ output "aws_default_region" {
- **enum** (List of String) possible values of this variable
- **is_sensitive** (Boolean) is the variable defined as sensitive
- **scope** (String) scope of the variable
- **value** (String) value stored in the variable
- **value** (String, Sensitive) value stored in the variable


8 changes: 5 additions & 3 deletions docs/resources/configuration_variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ description: |-

```terraform
resource "env0_configuration_variable" "example" {
name = "ENVIRONMENT_VARIABLE_NAME"
value = "example value"
name = "ENVIRONMENT_VARIABLE_NAME"
value = "example value"
description = "Here you can fill description for this variable, note this field have limit of 255 chars"
}
resource "env0_configuration_variable" "drop_down" {
Expand All @@ -34,10 +35,11 @@ resource "env0_configuration_variable" "drop_down" {
### Required

- **name** (String) name to give the configuration variable
- **value** (String) value for the configuration variable
- **value** (String, Sensitive) value for the configuration variable

### Optional

- **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
- **id** (String) The ID of this resource.
Expand Down
5 changes: 3 additions & 2 deletions examples/resources/env0_configuration_variable/resource.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "env0_configuration_variable" "example" {
name = "ENVIRONMENT_VARIABLE_NAME"
value = "example value"
name = "ENVIRONMENT_VARIABLE_NAME"
value = "example value"
description = "Here you can fill description for this variable, note this field have limit of 255 chars"
}

resource "env0_configuration_variable" "drop_down" {
Expand Down

0 comments on commit 81f8649

Please sign in to comment.