Skip to content

Commit

Permalink
Merge pull request #11 from pogosoftware/develop
Browse files Browse the repository at this point in the history
Fixed user tags
  • Loading branch information
scrhicks authored May 16, 2022
2 parents 21f42fd + c4b59f3 commit 657c762
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ No resources.
| <a name="input_subnet_group_subnet_ids"></a> [subnet\_group\_subnet\_ids](#input\_subnet\_group\_subnet\_ids) | List of VPC Subnet IDs for the cache subnet group | `list(string)` | `[]` | no |
| <a name="input_subnet_group_tags"></a> [subnet\_group\_tags](#input\_subnet\_group\_tags) | Key-value map of resource tags | `map(string)` | `{}` | no |
| <a name="input_user_groups"></a> [user\_groups](#input\_user\_groups) | Map of user groups with group id as a key | `map(any)` | `{}` | no |
| <a name="input_user_tags"></a> [user\_tags](#input\_user\_tags) | A list of tags to be added to this resource | `map(string)` | `{}` | no |
| <a name="input_users"></a> [users](#input\_users) | Map of users to create where `user_id` is a key | `map(any)` | `{}` | no |

## Outputs
Expand Down
3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
6 changes: 0 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
##########################################################################
Expand Down

0 comments on commit 657c762

Please sign in to comment.