From d54964b5ed1d0a5aff3434d9888a1a7c33501a34 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pogorzelec <29803615+scrhicks@users.noreply.github.com> Date: Mon, 16 May 2022 18:03:43 +0200 Subject: [PATCH] Fixed user tags --- README.md | 1 - main.tf | 3 +-- variables.tf | 6 ------ 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index cc14804..eb8faa1 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,6 @@ No resources. | [subnet\_group\_subnet\_ids](#input\_subnet\_group\_subnet\_ids) | List of VPC Subnet IDs for the cache subnet group | `list(string)` | `[]` | no | | [subnet\_group\_tags](#input\_subnet\_group\_tags) | Key-value map of resource tags | `map(string)` | `{}` | no | | [user\_groups](#input\_user\_groups) | Map of user groups with group id as a key | `map(any)` | `{}` | no | -| [user\_tags](#input\_user\_tags) | A list of tags to be added to this resource | `map(string)` | `{}` | no | | [users](#input\_users) | Map of users to create where `user_id` is a key | `map(any)` | `{}` | no | ## Outputs diff --git a/main.tf b/main.tf index 4d8fa76..9d450f9 100644 --- a/main.tf +++ b/main.tf @@ -34,8 +34,7 @@ module "user" { engine = each.value.engine passwords = lookup(each.value, "passwords", []) no_password_required = lookup(each.value, "no_password_required", false) - - tags = var.user_tags + tags = lookup(each.value, "tags", {}) } module "user_group" { diff --git a/variables.tf b/variables.tf index 1b8a44e..068e7fc 100644 --- a/variables.tf +++ b/variables.tf @@ -82,12 +82,6 @@ variable "users" { type = map(any) } -variable "user_tags" { - default = {} - description = "A list of tags to be added to this resource" - type = map(string) -} - ########################################################################## ### USER GROUP ##########################################################################