Skip to content

Commit

Permalink
Fix aws-rds VCAP_SERVICES lookup path
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab committed Aug 19, 2024
1 parent 36fafa5 commit 85c3db3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/server-doj/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getCloudGovServerSecrets = () => {
const services = JSON.parse(process.env.VCAP_SERVICES || '{}');
return {
//loginGovClientSecret: services['user-provided']?.credentials?.SECRET_LOGIN_GOV_PRIVATE_KEY,
dbUri: services['aws-rds'].credentials.uri as string,
dbUri: services['aws-rds'][0].credentials.uri as string,
};
};

Expand Down
2 changes: 1 addition & 1 deletion apps/server-kansas/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getCloudGovServerSecrets = () => {
const services = JSON.parse(process.env.VCAP_SERVICES || '{}');
return {
//loginGovClientSecret: services['user-provided']?.credentials?.SECRET_LOGIN_GOV_PRIVATE_KEY,
dbUri: services['aws-rds'].credentials.uri as string,
dbUri: services['aws-rds'][0].credentials.uri as string,
};
};

Expand Down

0 comments on commit 85c3db3

Please sign in to comment.