From 63c925c7316968ffd47503e0f0f4baad36c42abc Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 29 Nov 2023 14:25:01 -0500 Subject: [PATCH] wip --- lib/tasks/stt-task.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/stt-task.js b/lib/tasks/stt-task.js index 29c96947..8ce2d80b 100644 --- a/lib/tasks/stt-task.js +++ b/lib/tasks/stt-task.js @@ -92,7 +92,7 @@ class SttTask extends Task { const {accessKeyId, secretAccessKey, region } = credentials; const { servedFromCache, ...newCredentials} = await getAwsAuthToken(accessKeyId, secretAccessKey, region); this.logger.debug({newCredentials}, `got aws security token ${servedFromCache ? 'from cache' : ''}`); - credentials = newCredentials; + credentials = {...newCredentials, region}; } return credentials; }