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;