Skip to content

Commit 634267d

Browse files
committed
-
1 parent 704418e commit 634267d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/server/api/auxiaProxyRouter.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import express, { Router } from 'express';
2-
//import { getSsmValue } from '../utils/ssm';
2+
import { getSsmValue } from '../utils/ssm';
33
//import fetch from 'node-fetch';
44

55
export interface AuxiaRouterConfig {
@@ -116,10 +116,10 @@ const buildAuxiaProxyResponseData = (auxiaData: AuxiaAPIAnswerData): AuxiaProxyR
116116
*/
117117

118118
export const getAuxiaRouterConfig = async (): Promise<AuxiaRouterConfig> => {
119-
const apiKey = 'apiKey'; // await getSsmValue('PROD', 'auxia-api-key');
120-
//if (apiKey === undefined) {
121-
// throw new Error('auxia-api-key is undefined');
122-
//}
119+
const apiKey = await getSsmValue('PROD', 'auxia-api-key');
120+
if (apiKey === undefined) {
121+
throw new Error('auxia-api-key is undefined');
122+
}
123123

124124
const projectId = 'projectId'; // await getSsmValue('PROD', 'auxia-projectId');
125125
//if (projectId === undefined) {

0 commit comments

Comments
 (0)