diff --git a/lib/decidim-stack.ts b/lib/decidim-stack.ts index 0969bc5..b292c54 100644 --- a/lib/decidim-stack.ts +++ b/lib/decidim-stack.ts @@ -115,6 +115,7 @@ export class DecidimStack extends cdk.Stack { const DecidimContainerEnvironment: { [key: string]: string } = { AWS_CLOUD_FRONT_END_POINT: ssm.StringParameter.valueForTypedStringParameterV2(this, `/decidim-cfj/${ props.stage }/AWS_CLOUD_FRONT_END_POINT`), REDIS_URL: `redis://${ props.cache }:6379`, + REDIS_CACHE_URL: `redis://${ props.cache }:6379`, RDS_DB_NAME: ssm.StringParameter.valueForTypedStringParameterV2(this, `/decidim-cfj/${ props.stage }/RDS_DB_NAME`), RDS_HOSTNAME: props.rds, RDS_USERNAME: ssm.StringParameter.valueForTypedStringParameterV2(this, `/decidim-cfj/${ props.stage }/RDS_USERNAME`), diff --git a/test/__snapshots__/decidim-cfj-cdk.test.ts.snap b/test/__snapshots__/decidim-cfj-cdk.test.ts.snap index 9cfaddb..bf7b2bb 100644 --- a/test/__snapshots__/decidim-cfj-cdk.test.ts.snap +++ b/test/__snapshots__/decidim-cfj-cdk.test.ts.snap @@ -1175,6 +1175,21 @@ exports[`DecidimStack Created 1`] = ` ], }, }, + { + "Name": "REDIS_CACHE_URL", + "Value": { + "Fn::Join": [ + "", + [ + "redis://", + { + "Fn::ImportValue": "stagingdecidimElastiCacheStack:ExportsOutputFnGetAttelasticacheReaderEndPointAddress70C380A8", + }, + ":6379", + ], + ], + }, + }, { "Name": "RDS_DB_NAME", "Value": { @@ -1372,6 +1387,21 @@ exports[`DecidimStack Created 1`] = ` ], }, }, + { + "Name": "REDIS_CACHE_URL", + "Value": { + "Fn::Join": [ + "", + [ + "redis://", + { + "Fn::ImportValue": "stagingdecidimElastiCacheStack:ExportsOutputFnGetAttelasticacheReaderEndPointAddress70C380A8", + }, + ":6379", + ], + ], + }, + }, { "Name": "RDS_DB_NAME", "Value": { @@ -1932,6 +1962,21 @@ exports[`DecidimStack Created 1`] = ` ], }, }, + { + "Name": "REDIS_CACHE_URL", + "Value": { + "Fn::Join": [ + "", + [ + "redis://", + { + "Fn::ImportValue": "stagingdecidimElastiCacheStack:ExportsOutputFnGetAttelasticacheReaderEndPointAddress70C380A8", + }, + ":6379", + ], + ], + }, + }, { "Name": "RDS_DB_NAME", "Value": {