resource "aws_elasticache_cluster" "redis" { cluster_id = "game-server" engine = "redis" #node_type = "cache.m6g.large" node_type = "cache.t4g.micro" num_cache_nodes = 1 parameter_group_name = "default.redis7" apply_immediately = true port = 6379 subnet_group_name = aws_elasticache_subnet_group.redis.name security_group_ids = [aws_security_group.allow_all.id] tags = local.tags } resource "aws_elasticache_subnet_group" "redis" { name = "game-server" subnet_ids = module.vpc.private_subnets tags = local.tags } #resource "aws_elasticache_user" "default" { # user_id = "default" # user_name = "default" # engine = "REDIS" # access_string = "on ~* +@all" # no_password_required = true # tags = local.tags #} # #resource "aws_elasticache_user_group" "default" { # engine = "REDIS" # user_group_id = "default" # user_ids = [aws_elasticache_user.default.id] #} # #resource "aws_elasticache_user_group_association" "example" { # user_group_id = aws_elasticache_user_group.default.user_group_id # user_id = aws_elasticache_user.user.user_id #}