-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |