Skip to content

Commit

Permalink
Merge pull request #54 from codeforjapan/feat/add-REDIS_CACHE_URL
Browse files Browse the repository at this point in the history
feat: add REDIS_CACHE_URL
  • Loading branch information
ayuki-joto authored Jul 25, 2024
2 parents a96fa30 + c59f820 commit 786ef45
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/decidim-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`),
Expand Down
45 changes: 45 additions & 0 deletions test/__snapshots__/decidim-cfj-cdk.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 786ef45

Please sign in to comment.