From 907f185856305cf91e51f130755b77eb70d81b7e Mon Sep 17 00:00:00 2001 From: Aram Karapetyan Date: Tue, 25 Jul 2023 16:21:36 +0400 Subject: [PATCH 1/2] fix(DMVP-fix-var): Change variable type --- variables.tf | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/variables.tf b/variables.tf index 7eeed9a..67d5a3d 100644 --- a/variables.tf +++ b/variables.tf @@ -46,13 +46,14 @@ variable "terraform_version" { } variable "module_providers" { - type = list(object({ - name = string - version = string - source = optional(string) - alias = optional(string) - custom_vars = optional(any, {}) - })) + type = any + # object({ + # name = string + # version = string + # source = optional(string) + # alias = optional(string) + # custom_vars = optional(any, {}) + # })) default = [] description = "The list of providers to add in providers.tf" } From b09758e08f5d575d6c6fed412be15ce7055fb5cf Mon Sep 17 00:00:00 2001 From: Aram Karapetyan Date: Tue, 25 Jul 2023 16:22:18 +0400 Subject: [PATCH 2/2] fix(DMVP-fix-var): Change variable type --- README.md | 2 +- variables.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3283b39..db559a2 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ git config core.hooksPath githooks | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [linked\_workspaces](#input\_linked\_workspaces) | The list of workspaces from where we can pull outputs and use in our module variables | `list(string)` | `null` | no | -| [module\_providers](#input\_module\_providers) | The list of providers to add in providers.tf |
list(object({
name = string
version = string
source = optional(string)
alias = optional(string)
custom_vars = optional(any, {})
}))
| `[]` | no | +| [module\_providers](#input\_module\_providers) | The list of providers to add in providers.tf | `any` | `[]` | no | | [module\_source](#input\_module\_source) | The module source | `string` | n/a | yes | | [module\_vars](#input\_module\_vars) | The module variables | `any` | `{}` | no | | [module\_version](#input\_module\_version) | The module version | `string` | n/a | yes | diff --git a/variables.tf b/variables.tf index 67d5a3d..f03cf48 100644 --- a/variables.tf +++ b/variables.tf @@ -46,7 +46,7 @@ variable "terraform_version" { } variable "module_providers" { - type = any + type = any # object({ # name = string # version = string