Skip to content

Commit

Permalink
Add User Group ID support (#39)
Browse files Browse the repository at this point in the history
* adding for support user_group_ids variable

* add user_group_ids to README.md
  • Loading branch information
mosheven authored Apr 20, 2023
1 parent 35a2625 commit b3862cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ No modules.
| <a name="input_subnet_ids"></a> [subnet\_ids](#input\_subnet\_ids) | List of VPC Subnet IDs for the cache subnet group. | `list(string)` | n/a | yes |
| <a name="input_tags"></a> [tags](#input\_tags) | A mapping of tags to assign to all resources. | `map(string)` | `{}` | no |
| <a name="input_transit_encryption_enabled"></a> [transit\_encryption\_enabled](#input\_transit\_encryption\_enabled) | Whether to enable encryption in transit. | `bool` | `true` | no |
| <a name="input_user_group_ids"></a> [user\_group\_id](#input\_user\_group\_id) | User Group ID to associate with the replication group. | `list(string)` | n/a | no |
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | VPC Id to associate with Redis ElastiCache. | `string` | n/a | yes |

## Outputs
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ resource "aws_elasticache_replication_group" "redis" {
replicas_per_node_group = var.cluster_mode_enabled ? var.replicas_per_node_group : null
num_node_groups = var.cluster_mode_enabled ? var.num_node_groups : null

user_group_ids = var.user_group_ids
dynamic "log_delivery_configuration" {
for_each = var.log_delivery_configuration

Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,8 @@ variable "data_tiering_enabled" {
default = false
description = "Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes."
}
variable "user_group_ids" {
type = list(string)
default = null
description = "User Group ID to associate with the replication group"
}

0 comments on commit b3862cd

Please sign in to comment.