Resource: aws_elasticache_user_group

Provides an ElastiCache user group resource.

Example Usage

resource "aws_elasticache_user" "test" {
  user_id       = "testUserId"
  user_name     = "default"
  access_string = "on ~app::* -@all +@read +@hash +@bitmap +@geo -setbit -bitfield -hset -hsetnx -hmset -hincrby -hincrbyfloat -hdel -bitop -geoadd -georadius -georadiusbymember"
  engine        = "REDIS"
  passwords     = ["password123456789"]
}

resource "aws_elasticache_user_group" "test" {
  engine        = "REDIS"
  user_group_id = "userGroupId"
  user_ids      = [aws_elasticache_user.test.user_id]
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import ElastiCache user groups using the user_group_id. For example:

import {
  to = aws_elasticache_user_group.my_user_group
  id = "userGoupId1"
}

Using terraform import, import ElastiCache user groups using the user_group_id. For example:

% terraform import aws_elasticache_user_group.my_user_group userGoupId1