Skip to content

Commit ad771d9

Browse files
authored
[aws/backing-services] update module versions (#44)
* Update elastic cache
1 parent c67b743 commit ad771d9

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

aws/backing-services/elasticache-redis.tf

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
variable "REDIS_NAME" {
2+
type = "string"
3+
default = "redis"
4+
description = "Redis name"
5+
}
6+
17
variable "REDIS_INSTANCE_TYPE" {
28
type = "string"
39
default = "cache.t2.medium"
@@ -16,19 +22,38 @@ variable "REDIS_CLUSTER_ENABLED" {
1622
description = "Set to false to prevent the module from creating any resources"
1723
}
1824

25+
variable "REDIS_AUTH_TOKEN" {
26+
type = "string"
27+
default = ""
28+
description = "Auth token for password protecting redis, transit_encryption_enabled must be set to 'true'! Password must be longer than 16 chars"
29+
}
30+
31+
variable "REDIS_TRANSIT_ENCRYPTION_ENABLED" {
32+
type = "string"
33+
default = "true"
34+
description = "Enable TLS"
35+
}
36+
37+
variable "REDIS_PARAMS" {
38+
type = "list"
39+
default = []
40+
description = "A list of Redis parameters to apply. Note that parameters may differ from a Redis family to another"
41+
}
42+
1943
module "elasticache_redis" {
20-
source = "git::https://github.com/cloudposse/terraform-aws-elasticache-redis.git?ref=tags/0.4.3"
44+
source = "git::https://github.com/cloudposse/terraform-aws-elasticache-redis.git?ref=tags/0.7.1"
2145
namespace = "${var.namespace}"
2246
stage = "${var.stage}"
23-
name = "redis"
47+
name = "${var.REDIS_NAME}"
2448
zone_id = "${var.zone_id}"
2549
security_groups = ["${module.kops_metadata.nodes_security_group_id}"]
2650
vpc_id = "${module.vpc.vpc_id}"
2751
subnets = ["${module.subnets.private_subnet_ids}"]
2852
maintenance_window = "sun:03:00-sun:04:00"
2953
cluster_size = "${var.REDIS_CLUSTER_SIZE}"
3054
instance_type = "${var.REDIS_INSTANCE_TYPE}"
31-
engine_version = "3.2.4"
55+
transit_encryption_enabled = "${var.REDIS_TRANSIT_ENCRYPTION_ENABLED}"
56+
engine_version = "3.2.6"
3257
family = "redis3.2"
3358
port = "6379"
3459
alarm_cpu_threshold_percent = "75"
@@ -37,6 +62,9 @@ module "elasticache_redis" {
3762
availability_zones = ["${data.aws_availability_zones.available.names}"]
3863
automatic_failover = "false"
3964
enabled = "${var.REDIS_CLUSTER_ENABLED}"
65+
auth_token = "${var.REDIS_AUTH_TOKEN}"
66+
67+
parameter = "${var.REDIS_PARAMS}"
4068
}
4169

4270
output "elasticache_redis_id" {

aws/backing-services/elasticsearch.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ locals {
6363
}
6464

6565
module "elasticsearch" {
66-
source = "git::https://github.com/cloudposse/terraform-aws-elasticsearch.git?ref=tags/0.1.3"
66+
source = "git::https://github.com/cloudposse/terraform-aws-elasticsearch.git?ref=tags/0.1.5"
6767
namespace = "${var.namespace}"
6868
stage = "${var.stage}"
6969
name = "${var.ELASTICSEARCH_NAME}"

aws/ecr/kops_ecr_app.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ variable "kops_ecr_app_repository_name" {
33
}
44

55
module "kops_ecr_app" {
6-
source = "git::https://github.com/cloudposse/terraform-aws-kops-ecr.git?ref=tags/0.1.3"
6+
source = "git::https://github.com/cloudposse/terraform-aws-kops-ecr.git?ref=tags/0.1.4"
77
namespace = "${var.namespace}"
88
stage = "${var.stage}"
99
name = "${var.kops_ecr_app_repository_name}"

0 commit comments

Comments
 (0)