From 2782a7b5b0bccaa5b60b6a94c96bdf81727e0486 Mon Sep 17 00:00:00 2001 From: Mariano Goldman Date: Mon, 30 Oct 2023 15:41:55 -0300 Subject: [PATCH] fix: optional string --- src/components.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components.ts b/src/components.ts index c9a04f1..cf86ffc 100644 --- a/src/components.ts +++ b/src/components.ts @@ -27,8 +27,8 @@ export async function initComponents(): Promise { const awsConfig: AwsConfig = { region: await config.requireString('AWS_REGION'), credentials: { - accessKeyId: await config.requireString('AWS_ACCESS_KEY_ID'), - secretAccessKey: await config.requireString('AWS_SECRET_ACCESS_KEY') + accessKeyId: (await config.getString('AWS_ACCESS_KEY_ID')) || '', + secretAccessKey: (await config.getString('AWS_SECRET_ACCESS_KEY')) || '' } } const awsEndpoint = await config.getString('AWS_ENDPOINT')