Skip to content

Commit

Permalink
fix(DMVP-0000): remove variable as it can be run using provider no ne…
Browse files Browse the repository at this point in the history
…ed for var
  • Loading branch information
aramkarapetian committed Sep 20, 2023
1 parent 49958f8 commit 559c66f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 16 deletions.
1 change: 0 additions & 1 deletion modules/variable-set-reader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ No modules.
|------|-------------|------|---------|:--------:|
| <a name="input_name"></a> [name](#input\_name) | Terraform cloud variable set name | `string` | n/a | yes |
| <a name="input_org"></a> [org](#input\_org) | The terraform cloud organization name where variable set and variables will be created | `string` | n/a | yes |
| <a name="input_tfc_token"></a> [tfc\_token](#input\_tfc\_token) | Terraform Cloud token so that workspace can load variable set values. | `string` | n/a | yes |

## Outputs

Expand Down
3 changes: 0 additions & 3 deletions modules/variable-set-reader/providers.tf
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
provider "tfe" {
token = var.tfc_token
}
3 changes: 0 additions & 3 deletions modules/variable-set-reader/tests/basic/1-example.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
variable "tfc_token" {}
module "basic" {
source = "../.."
name = "aws_credentials"
org = "dasmeta"

tfc_token = var.tfc_token
}
4 changes: 1 addition & 3 deletions modules/variable-set-reader/tests/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ No resources.

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_tfc_token"></a> [tfc\_token](#input\_tfc\_token) | n/a | `any` | n/a | yes |
No inputs.

## Outputs

Expand Down
6 changes: 0 additions & 6 deletions modules/variable-set-reader/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 559c66f

Please sign in to comment.