From 559c66fa3edd5a984f6c890731f595ca135df554 Mon Sep 17 00:00:00 2001 From: "Karapetyan, Aram" Date: Wed, 20 Sep 2023 19:15:33 +0400 Subject: [PATCH] fix(DMVP-0000): remove variable as it can be run using provider no need for var --- modules/variable-set-reader/README.md | 1 - modules/variable-set-reader/providers.tf | 3 --- modules/variable-set-reader/tests/basic/1-example.tf | 3 --- modules/variable-set-reader/tests/basic/README.md | 4 +--- modules/variable-set-reader/variables.tf | 6 ------ 5 files changed, 1 insertion(+), 16 deletions(-) diff --git a/modules/variable-set-reader/README.md b/modules/variable-set-reader/README.md index b3801c8..08535eb 100644 --- a/modules/variable-set-reader/README.md +++ b/modules/variable-set-reader/README.md @@ -31,7 +31,6 @@ No modules. |------|-------------|------|---------|:--------:| | [name](#input\_name) | Terraform cloud variable set name | `string` | n/a | yes | | [org](#input\_org) | The terraform cloud organization name where variable set and variables will be created | `string` | n/a | yes | -| [tfc\_token](#input\_tfc\_token) | Terraform Cloud token so that workspace can load variable set values. | `string` | n/a | yes | ## Outputs diff --git a/modules/variable-set-reader/providers.tf b/modules/variable-set-reader/providers.tf index 81d4224..e69de29 100644 --- a/modules/variable-set-reader/providers.tf +++ b/modules/variable-set-reader/providers.tf @@ -1,3 +0,0 @@ -provider "tfe" { - token = var.tfc_token -} diff --git a/modules/variable-set-reader/tests/basic/1-example.tf b/modules/variable-set-reader/tests/basic/1-example.tf index d4ac53c..20a8110 100644 --- a/modules/variable-set-reader/tests/basic/1-example.tf +++ b/modules/variable-set-reader/tests/basic/1-example.tf @@ -1,8 +1,5 @@ -variable "tfc_token" {} module "basic" { source = "../.." name = "aws_credentials" org = "dasmeta" - - tfc_token = var.tfc_token } diff --git a/modules/variable-set-reader/tests/basic/README.md b/modules/variable-set-reader/tests/basic/README.md index 6049b8c..8290757 100644 --- a/modules/variable-set-reader/tests/basic/README.md +++ b/modules/variable-set-reader/tests/basic/README.md @@ -24,9 +24,7 @@ No resources. ## Inputs -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| [tfc\_token](#input\_tfc\_token) | n/a | `any` | n/a | yes | +No inputs. ## Outputs diff --git a/modules/variable-set-reader/variables.tf b/modules/variable-set-reader/variables.tf index e5a84b8..fc15542 100644 --- a/modules/variable-set-reader/variables.tf +++ b/modules/variable-set-reader/variables.tf @@ -7,9 +7,3 @@ variable "org" { type = string description = "The terraform cloud organization name where variable set and variables will be created" } - -variable "tfc_token" { - type = string - description = "Terraform Cloud token so that workspace can load variable set values." - sensitive = true -}