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 ##########################################################################