Skip to content

Commit

Permalink
CLUSTER_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdikarimian committed Apr 24, 2022
1 parent e74cd5b commit bde2cb6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/redis-basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/redis-clustered-mode/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/redis-replication-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bde2cb6

Please sign in to comment.