Skip to content

Commit

Permalink
[aws/backing-services] update module versions (#44)
Browse files Browse the repository at this point in the history
* Update elastic cache
  • Loading branch information
goruha committed Oct 20, 2018
1 parent c67b743 commit ad771d9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
34 changes: 31 additions & 3 deletions aws/backing-services/elasticache-redis.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
variable "REDIS_NAME" {
type = "string"
default = "redis"
description = "Redis name"
}

variable "REDIS_INSTANCE_TYPE" {
type = "string"
default = "cache.t2.medium"
Expand All @@ -16,19 +22,38 @@ variable "REDIS_CLUSTER_ENABLED" {
description = "Set to false to prevent the module from creating any resources"
}

variable "REDIS_AUTH_TOKEN" {
type = "string"
default = ""
description = "Auth token for password protecting redis, transit_encryption_enabled must be set to 'true'! Password must be longer than 16 chars"
}

variable "REDIS_TRANSIT_ENCRYPTION_ENABLED" {
type = "string"
default = "true"
description = "Enable TLS"
}

variable "REDIS_PARAMS" {
type = "list"
default = []
description = "A list of Redis parameters to apply. Note that parameters may differ from a Redis family to another"
}

module "elasticache_redis" {
source = "git::https://github.com/cloudposse/terraform-aws-elasticache-redis.git?ref=tags/0.4.3"
source = "git::https://github.com/cloudposse/terraform-aws-elasticache-redis.git?ref=tags/0.7.1"
namespace = "${var.namespace}"
stage = "${var.stage}"
name = "redis"
name = "${var.REDIS_NAME}"
zone_id = "${var.zone_id}"
security_groups = ["${module.kops_metadata.nodes_security_group_id}"]
vpc_id = "${module.vpc.vpc_id}"
subnets = ["${module.subnets.private_subnet_ids}"]
maintenance_window = "sun:03:00-sun:04:00"
cluster_size = "${var.REDIS_CLUSTER_SIZE}"
instance_type = "${var.REDIS_INSTANCE_TYPE}"
engine_version = "3.2.4"
transit_encryption_enabled = "${var.REDIS_TRANSIT_ENCRYPTION_ENABLED}"
engine_version = "3.2.6"
family = "redis3.2"
port = "6379"
alarm_cpu_threshold_percent = "75"
Expand All @@ -37,6 +62,9 @@ module "elasticache_redis" {
availability_zones = ["${data.aws_availability_zones.available.names}"]
automatic_failover = "false"
enabled = "${var.REDIS_CLUSTER_ENABLED}"
auth_token = "${var.REDIS_AUTH_TOKEN}"

parameter = "${var.REDIS_PARAMS}"
}

output "elasticache_redis_id" {
Expand Down
2 changes: 1 addition & 1 deletion aws/backing-services/elasticsearch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ locals {
}

module "elasticsearch" {
source = "git::https://github.com/cloudposse/terraform-aws-elasticsearch.git?ref=tags/0.1.3"
source = "git::https://github.com/cloudposse/terraform-aws-elasticsearch.git?ref=tags/0.1.5"
namespace = "${var.namespace}"
stage = "${var.stage}"
name = "${var.ELASTICSEARCH_NAME}"
Expand Down
2 changes: 1 addition & 1 deletion aws/ecr/kops_ecr_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ variable "kops_ecr_app_repository_name" {
}

module "kops_ecr_app" {
source = "git::https://github.com/cloudposse/terraform-aws-kops-ecr.git?ref=tags/0.1.3"
source = "git::https://github.com/cloudposse/terraform-aws-kops-ecr.git?ref=tags/0.1.4"
namespace = "${var.namespace}"
stage = "${var.stage}"
name = "${var.kops_ecr_app_repository_name}"
Expand Down

0 comments on commit ad771d9

Please sign in to comment.