|
@@ -2,7 +2,7 @@
|
|
|
# Elastic Cache Redis
|
|
|
#-------------------
|
|
|
resource "aws_elasticache_cluster" "redis" {
|
|
|
- cluster_id = "${var.cache_name}"
|
|
|
+ cluster_id = "${var.stack_name}"
|
|
|
engine = "redis"
|
|
|
engine_version = "${var.engine_version}"
|
|
|
node_type = "${var.node_type}"
|
|
@@ -15,14 +15,14 @@ resource "aws_elasticache_cluster" "redis" {
|
|
|
tags {
|
|
|
Name = "Redis ElasticCache"
|
|
|
billing-category = "customers"
|
|
|
- billing-subcategory = "${var.cache_name}"
|
|
|
+ billing-subcategory = "${var.stack_name}"
|
|
|
role= "nuxeo.redis"
|
|
|
terraform = "true"
|
|
|
}
|
|
|
}
|
|
|
|
|
|
resource "aws_elasticache_subnet_group" "redis" {
|
|
|
- name = "${var.cache_name}-redis-subnet-group"
|
|
|
+ name = "${var.stack_name}-redis-subnet-group"
|
|
|
description = "Private subnets for the ElastiCache instances"
|
|
|
- subnet_ids = ["${subnet_ids}"]
|
|
|
+ subnet_ids = ["${var.private_subnet_ids}"]
|
|
|
}
|