File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import express , { Router } from 'express' ;
2- // import { getSsmValue } from '../utils/ssm';
2+ import { getSsmValue } from '../utils/ssm' ;
33//import fetch from 'node-fetch';
44
55export interface AuxiaRouterConfig {
@@ -116,10 +116,10 @@ const buildAuxiaProxyResponseData = (auxiaData: AuxiaAPIAnswerData): AuxiaProxyR
116116*/
117117
118118export 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) {
You can’t perform that action at this time.
0 commit comments