Skip to content

Commit

Permalink
Re-calculate redis_url
Browse files Browse the repository at this point in the history
  • Loading branch information
jonodrew committed Jun 1, 2023
1 parent 84c7922 commit f2de9ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mentor_match_infra/mentor_match_infra/mentor_match_stack.py
Expand Up @@ -98,10 +98,11 @@ def __init__(
cluster = ecs.Cluster(self, "MentorMatchCluster", vpc=vpc)

backend = RedisCache(self, "MentorCache", vpc)
redis_url = f"{backend.cluster.attr_redis_endpoint_address}:{backend.cluster.attr_redis_endpoint_port}"

broker_vars = {
"BROKER_URL": "redis://redis:6379/0",
"BACKEND_URL": "redis://redis:6379/0",
"BROKER_URL": redis_url,
"BACKEND_URL": redis_url,
}

web_service = ApplicationLoadBalancedFargateService(
Expand Down

0 comments on commit f2de9ec

Please sign in to comment.