Skip to content

Commit b3862cd

Browse files
authored
Add User Group ID support (#39)
* adding for support user_group_ids variable * add user_group_ids to README.md
1 parent 35a2625 commit b3862cd

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ No modules.
147147
| <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 |
148148
| <a name="input_tags"></a> [tags](#input\_tags) | A mapping of tags to assign to all resources. | `map(string)` | `{}` | no |
149149
| <a name="input_transit_encryption_enabled"></a> [transit\_encryption\_enabled](#input\_transit\_encryption\_enabled) | Whether to enable encryption in transit. | `bool` | `true` | no |
150+
| <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 |
150151
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | VPC Id to associate with Redis ElastiCache. | `string` | n/a | yes |
151152

152153
## Outputs

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ resource "aws_elasticache_replication_group" "redis" {
3838
replicas_per_node_group = var.cluster_mode_enabled ? var.replicas_per_node_group : null
3939
num_node_groups = var.cluster_mode_enabled ? var.num_node_groups : null
4040

41+
user_group_ids = var.user_group_ids
4142
dynamic "log_delivery_configuration" {
4243
for_each = var.log_delivery_configuration
4344

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,8 @@ variable "data_tiering_enabled" {
226226
default = false
227227
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."
228228
}
229+
variable "user_group_ids" {
230+
type = list(string)
231+
default = null
232+
description = "User Group ID to associate with the replication group"
233+
}

0 commit comments

Comments
 (0)