Skip to content

Commit

Permalink
fix: redis secure if needed
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <[email protected]>
  • Loading branch information
ArchiFleKs committed Nov 26, 2019
1 parent d93a512 commit 436f485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elasticache.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ resource "kubernetes_secret" "redis_secrets" {
REDIS_MEMBER_CLUSTERS = join(",", var.redis_cluster_mode["enabled"] ? aws_elasticache_replication_group.redis_cluster[0].member_clusters : aws_elasticache_replication_group.redis[0].member_clusters)
REDIS_PORT = var.redis_port
REDIS_AUTH = var.redis_token_enabled ? random_uuid.redis_token[0].result : ""
REDIS_URL = var.redis_token_enabled ? "redis://:${random_uuid.redis_token[0].result}@${var.redis_cluster_mode["enabled"] ? aws_elasticache_replication_group.redis_cluster[0].primary_endpoint_address : aws_elasticache_replication_group.redis[0].primary_endpoint_address}:${var.redis_port}" : "redis://${var.redis_cluster_mode["enabled"] ? aws_elasticache_replication_group.redis_cluster[0].primary_endpoint_address : aws_elasticache_replication_group.redis[0].primary_endpoint_address}:${var.redis_port}"
REDIS_URL = var.redis_token_enabled ? "redis${var.redis_transit_encryption_enabled ? "s" : ""}://:${random_uuid.redis_token[0].result}@${var.redis_cluster_mode["enabled"] ? aws_elasticache_replication_group.redis_cluster[0].primary_endpoint_address : aws_elasticache_replication_group.redis[0].primary_endpoint_address}:${var.redis_port}" : "redis${var.redis_transit_encryption_enabled ? "s" : ""}://${var.redis_cluster_mode["enabled"] ? aws_elasticache_replication_group.redis_cluster[0].primary_endpoint_address : aws_elasticache_replication_group.redis[0].primary_endpoint_address}:${var.redis_port}"
}
}

0 comments on commit 436f485

Please sign in to comment.