@@ -665,7 +665,6 @@ Resources:
665665 - - "{{resolve:secretsmanager:"
666666 - Ref : RdsDBClusterDBSecret28397CCA
667667 - :SecretString:password::}}
668- Port : 5432
669668 Tags :
670669 - Key : StackName
671670 Value : dev-mysite-com
@@ -675,6 +674,49 @@ Resources:
675674 - GroupId
676675 Metadata :
677676 aws:cdk:path : dev-mysite-com-stack/RdsDBCluster/DBCluster
677+ ElastiCacheRedisElastiCacheSecurityGroupA36895A6 :
678+ Type : AWS::EC2::SecurityGroup
679+ Properties :
680+ GroupDescription : ElastiCacheSecurityGroup
681+ SecurityGroupIngress :
682+ - FromPort : 6379
683+ IpProtocol : tcp
684+ SourceSecurityGroupId :
685+ Fn::GetAtt :
686+ - VpcC3027511
687+ - DefaultSecurityGroup
688+ ToPort : 6379
689+ Tags :
690+ - Key : StackName
691+ Value : dev-mysite-com
692+ VpcId :
693+ Ref : VpcC3027511
694+ Metadata :
695+ aws:cdk:path : dev-mysite-com-stack/ElastiCacheRedis/ElastiCacheSecurityGroup
696+ ElastiCacheRedisCfnSubnetGroup403949FE :
697+ Type : AWS::ElastiCache::SubnetGroup
698+ Properties :
699+ Description : The subnet group for ElastiCache
700+ SubnetIds :
701+ - Ref : VpcIsolatedSubnet1SubnetDC3C6AF8
702+ - Ref : VpcIsolatedSubnet2SubnetB479B99C
703+ Metadata :
704+ aws:cdk:path : dev-mysite-com-stack/ElastiCacheRedis/CfnSubnetGroup
705+ ElastiCacheRedisElastiCacheClusterRedis25390D9F :
706+ Type : AWS::ElastiCache::CacheCluster
707+ Properties :
708+ CacheNodeType : cache.t2.micro
709+ Engine : redis
710+ NumCacheNodes : 1
711+ Tags :
712+ - Key : StackName
713+ Value : dev-mysite-com
714+ VpcSecurityGroupIds :
715+ - Fn::GetAtt :
716+ - ElastiCacheRedisElastiCacheSecurityGroupA36895A6
717+ - GroupId
718+ Metadata :
719+ aws:cdk:path : dev-mysite-com-stack/ElastiCacheRedis/ElastiCacheClusterRedis
678720 VariablesDjangoSecretKeyE4FA41EE :
679721 Type : AWS::SecretsManager::Secret
680722 Properties :
@@ -766,6 +808,11 @@ Resources:
766808 - :SecretString:password::}}
767809 - Name : SECRET_KEY
768810 Value : mysecretkey123
811+ - Name : REDIS_SERVICE_HOST
812+ Value :
813+ Fn::GetAtt :
814+ - ElastiCacheRedisElastiCacheClusterRedis25390D9F
815+ - RedisEndpoint.Address
769816 Essential : true
770817 Image :
771818 Fn::Join :
@@ -967,6 +1014,11 @@ Resources:
9671014 - :SecretString:password::}}
9681015 - Name : SECRET_KEY
9691016 Value : mysecretkey123
1017+ - Name : REDIS_SERVICE_HOST
1018+ Value :
1019+ Fn::GetAtt :
1020+ - ElastiCacheRedisElastiCacheClusterRedis25390D9F
1021+ - RedisEndpoint.Address
9701022 Essential : true
9711023 Image :
9721024 Fn::Join :
@@ -1149,6 +1201,11 @@ Resources:
11491201 - :SecretString:password::}}
11501202 - Name : SECRET_KEY
11511203 Value : mysecretkey123
1204+ - Name : REDIS_SERVICE_HOST
1205+ Value :
1206+ Fn::GetAtt :
1207+ - ElastiCacheRedisElastiCacheClusterRedis25390D9F
1208+ - RedisEndpoint.Address
11521209 Essential : true
11531210 Image :
11541211 Fn::Join :
@@ -1330,6 +1387,11 @@ Resources:
13301387 - :SecretString:password::}}
13311388 - Name : SECRET_KEY
13321389 Value : mysecretkey123
1390+ - Name : REDIS_SERVICE_HOST
1391+ Value :
1392+ Fn::GetAtt :
1393+ - ElastiCacheRedisElastiCacheClusterRedis25390D9F
1394+ - RedisEndpoint.Address
13331395 Essential : true
13341396 Image :
13351397 Fn::Join :
0 commit comments