diff --git a/docs/resources/project_environment.md b/docs/resources/project_environment.md index e7af878..8868494 100644 --- a/docs/resources/project_environment.md +++ b/docs/resources/project_environment.md @@ -31,7 +31,7 @@ resource "semaphoreui_project_environment" "environment" { } # environment variables - environment_variables = { + environment = { KEY1 = "value1" KEY2 = "value2" } @@ -63,9 +63,7 @@ resource "semaphoreui_project_environment" "environment" { - `environment` (Map of String) Environment variables. - `secrets` (Attributes List) Secret variables of either `"var"` or `"env"` type. The `value` is encrypted and will be empty if imported. (see [below for nested schema](#nestedatt--secrets)) -- `variables` (Map of String) Extra variables. - -Passed to Ansible as extra variables (`--extra-vars`) and Terraform/OpenTofu as variables (`-var`). +- `variables` (Map of String) Extra variables. Passed to Ansible as extra variables (`--extra-vars`) and Terraform/OpenTofu as variables (`-var`). ### Read-Only diff --git a/examples/resources/semaphoreui_project_environment/resource.tf b/examples/resources/semaphoreui_project_environment/resource.tf index 59f1584..7646350 100644 --- a/examples/resources/semaphoreui_project_environment/resource.tf +++ b/examples/resources/semaphoreui_project_environment/resource.tf @@ -13,7 +13,7 @@ resource "semaphoreui_project_environment" "environment" { } # environment variables - environment_variables = { + environment = { KEY1 = "value1" KEY2 = "value2" } diff --git a/internal/provider/project_environment_resource.go b/internal/provider/project_environment_resource.go index 781b967..358c410 100644 --- a/internal/provider/project_environment_resource.go +++ b/internal/provider/project_environment_resource.go @@ -84,7 +84,7 @@ A project environment provides a list of extra and environment variables that ca Required: true, }, "variables": schema.MapAttribute{ - MarkdownDescription: "Extra variables.\n\nPassed to Ansible as extra variables (`--extra-vars`) and Terraform/OpenTofu as variables (`-var`).", + MarkdownDescription: "Extra variables. Passed to Ansible as extra variables (`--extra-vars`) and Terraform/OpenTofu as variables (`-var`).", ElementType: types.StringType, Optional: true, },