From 51b0e65ad7c18b18cb02228c5cdcefd7482caaea Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sat, 9 May 2020 05:07:50 -0400 Subject: [PATCH] Add redis cluster --- .gitmodules | 3 +++ infrastructure/cloudformation/dt/top.yaml | 13 +++++++++++++ infrastructure/cloudformation/redis | 1 + 3 files changed, 17 insertions(+) create mode 160000 infrastructure/cloudformation/redis diff --git a/.gitmodules b/.gitmodules index c4b67c6..3bbce38 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "infrastructure/cloudformation/cluster"] path = infrastructure/cloudformation/cluster url = git@github.com:josephbmanley/aws-cluster-stack.git +[submodule "infrastructure/cloudformation/redis"] + path = infrastructure/cloudformation/redis + url = git@github.com:josephbmanley/aws-redis-cluster.git diff --git a/infrastructure/cloudformation/dt/top.yaml b/infrastructure/cloudformation/dt/top.yaml index a3c1044..54f4f9a 100644 --- a/infrastructure/cloudformation/dt/top.yaml +++ b/infrastructure/cloudformation/dt/top.yaml @@ -68,6 +68,19 @@ Resources: SubDomain: !Ref SubDomain DtDNS: !GetAtt LoadBalancing.Outputs.NlbDnsName + #--------- + # Caching + #--------- + RedisCache: + Type: AWS::CloudFormation::Stack + Properties: + TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/sumu-stacks/dt/${release}/cloudformation/redis/top.yaml' + Parameters: + Environment: !Ref environment + VpcId: !Ref VpcId + SubnetIds: !Join [",", !Split [" ", !Ref PublicSubnets]] + Project: "DT" + #----------------- # Load Balancing #----------------- diff --git a/infrastructure/cloudformation/redis b/infrastructure/cloudformation/redis new file mode 160000 index 0000000..b051e15 --- /dev/null +++ b/infrastructure/cloudformation/redis @@ -0,0 +1 @@ +Subproject commit b051e15fa09b8e6f764a17d7fc35ae6e74e630e1