From 44768b32df0af773df6eec5518fe1677dc05cc4e Mon Sep 17 00:00:00 2001 From: update generated docs action Date: Tue, 4 Jun 2024 13:54:22 +0000 Subject: [PATCH] Update docs --- docs/resources/variable_set.md | 13 ++++++++++++ docs/resources/variable_set_assignment.md | 26 +++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 docs/resources/variable_set_assignment.md diff --git a/docs/resources/variable_set.md b/docs/resources/variable_set.md index 4439af74..5d5421a3 100644 --- a/docs/resources/variable_set.md +++ b/docs/resources/variable_set.md @@ -17,6 +17,10 @@ data "env0_project" "project" { name = "project" } +data "env0_environment" "environment" { + name = "environment" +} + resource "env0_variable_set" "organization_scope_example" { name = "variable-set-example1" description = "description123" @@ -69,6 +73,15 @@ resource "env0_variable_set" "project_scope_example" { format = "text" } } + +resource "env0_variable_set_assignment" "assignment" { + scope = "environment" + scope_id = data.env0_environment.id + set_ids = [ + env0_variable_set.project_scope_example.id, + env0_variable_set.organization_scope_example.id, + ] +} ``` diff --git a/docs/resources/variable_set_assignment.md b/docs/resources/variable_set_assignment.md new file mode 100644 index 00000000..3fce7dd5 --- /dev/null +++ b/docs/resources/variable_set_assignment.md @@ -0,0 +1,26 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "env0_variable_set_assignment Resource - terraform-provider-env0" +subcategory: "" +description: |- + +--- + +# env0_variable_set_assignment (Resource) + + + + + + +## Schema + +### Required + +- `scope` (String) the resource(scope) type to assign to. Valid values: 'template', 'environment', 'module', 'organization', 'project', 'deployment' +- `scope_id` (String) the resource(scope)id (e.g. template id) +- `set_ids` (List of String) list of variable sets + +### Read-Only + +- `id` (String) The ID of this resource.