diff --git a/examples/redis-basic/main.tf b/examples/redis-basic/main.tf index d85e53f..2e484df 100644 --- a/examples/redis-basic/main.tf +++ b/examples/redis-basic/main.tf @@ -19,8 +19,8 @@ module "vpc" { } module "redis" { - namespace = "redis-basic-" - cluster_name = "example" + namespace = "redis-basic" + cluster_name = "redis-basic-example" source = "Mehdikarimian/elasticache-redis-cluster/aws" version = "1.0.3" vpc_id = module.vpc.vpc_id diff --git a/examples/redis-clustered-mode/main.tf b/examples/redis-clustered-mode/main.tf index 5341bc7..42548e5 100644 --- a/examples/redis-clustered-mode/main.tf +++ b/examples/redis-clustered-mode/main.tf @@ -19,8 +19,8 @@ module "vpc" { } module "redis" { - namespace = "redis-cluster-mode-" - cluster_name = "example" + namespace = "redis-cluster-mode" + cluster_name = "redis-cluster-mode-example" source = "Mehdikarimian/elasticache-redis-cluster/aws" version = "1.0.3" vpc_id = module.vpc.vpc_id diff --git a/examples/redis-replication-group/main.tf b/examples/redis-replication-group/main.tf index b80618b..e89d0d3 100644 --- a/examples/redis-replication-group/main.tf +++ b/examples/redis-replication-group/main.tf @@ -19,8 +19,8 @@ module "vpc" { } module "redis" { - namespace = "redis-replication-" - cluster_name = "example" + namespace = "redis-replication" + cluster_name = "redis-replication-example" source = "Mehdikarimian/elasticache-redis-cluster/aws" version = "1.0.3" vpc_id = module.vpc.vpc_id diff --git a/main.tf b/main.tf index ca7b4d8..a8be6d3 100644 --- a/main.tf +++ b/main.tf @@ -32,7 +32,7 @@ resource "aws_elasticache_parameter_group" "redis" { } resource "aws_elasticache_replication_group" "default" { - replication_group_id = "${var.namespace}-${var.cluster_name}" + replication_group_id = "${var.cluster_name}" description = var.cluster_description security_group_ids = [aws_security_group.redis-security-group.id] node_type = var.node_type