Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
update generated docs action committed May 29, 2024
1 parent f8e8343 commit 18aa36b
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions docs/resources/variable_set.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "env0_variable_set Resource - terraform-provider-env0"
subcategory: ""
description: |-
---

# env0_variable_set (Resource)



## Example Usage

```terraform
data "env0_project" "project" {
name = "project"
}
resource "env0_variable_set" "organization_scope_example" {
name = "variable-set-example1"
description = "description123"
variable {
name = "n1"
value = "v1"
format = "text"
}
variable {
name = "n1"
value = "v2"
type = "environment"
format = "text"
is_sensitive = true
}
variable {
name = "n3"
value = "v3"
type = "terraform"
format = "hcl"
}
variable {
name = "n4"
value = "{}"
type = "terraform"
format = "json"
}
variable {
name = "n5"
dropdown_values = ["o3", "o2"]
type = "terraform"
format = "dropdown"
}
}
resource "env0_variable_set" "project_scope_example" {
name = "variable-set-example2"
description = "description123"
scope = "project"
scope_id = data.env0_project.project.id
variable {
name = "n1"
value = "v1"
format = "text"
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) the name of the variable set

### Optional

- `description` (String) the description of the variable set
- `scope` (String) the scope of the variable set: 'organization', or 'project' (defaults to 'organization')
- `scope_id` (String) the scope id (e.g. project id). Note: not required for organization scope.
- `variable` (Block List) terraform or environment variable (see [below for nested schema](#nestedblock--variable))

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--variable"></a>
### Nested Schema for `variable`

Required:

- `name` (String) variable name

Optional:

- `dropdown_values` (List of String) a list of variable values for 'dropdown' format
- `format` (String) the value format: 'text' (free text), 'dropdown' (dropdown list), 'hcl', 'json'. Note: 'hcl' and 'json' can only be used in terraform variables.
- `is_sensitive` (Boolean) is the value sensitive (defaults to 'false'). Note: 'dropdown' value format cannot be senstive.
- `type` (String) variable type: terraform or environment (defaults to 'environment')
- `value` (String) variable value for 'hcl', 'json', or 'text' format

0 comments on commit 18aa36b

Please sign in to comment.