From 5a6cf446a6e9a7311b9c0da35b7cb0c4ea14cf9d Mon Sep 17 00:00:00 2001 From: Jon Scheiding Date: Fri, 6 Dec 2024 14:12:37 -0500 Subject: [PATCH] fix: unhandled error when AWS config or profile don't exist --- .../src/system-config-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify-provider-awscloudformation/src/system-config-manager.ts b/packages/amplify-provider-awscloudformation/src/system-config-manager.ts index 4d1f2e7db87..9fc8f7e76fd 100644 --- a/packages/amplify-provider-awscloudformation/src/system-config-manager.ts +++ b/packages/amplify-provider-awscloudformation/src/system-config-manager.ts @@ -354,7 +354,7 @@ const validateCredentials = (credentials: $TSAny, profileName: string): void => const normalizeKeys = (config: $TSAny): $TSAny => { const configClone = { ...config }; - if (configClone) { + if (config) { configClone.accessKeyId = config.accessKeyId || config.aws_access_key_id; configClone.secretAccessKey = config.secretAccessKey || config.aws_secret_access_key; configClone.sessionToken = config.sessionToken || config.aws_session_token;