From bc3bfc4c1c257e438be7ed6f0638d50cafbc1b4a Mon Sep 17 00:00:00 2001 From: "alexander.miehe" Date: Mon, 10 Nov 2025 11:35:49 +0100 Subject: [PATCH 1/2] Fix issue with ssm variables not found The variable resolution for ss has the possibility when a parameter is not foudn to use a fallback value, that is based on the error code. The V3 error code is not the same then the v2 one, for the ease I just check also for the v3 code, as it is the only place in the core code to check for the that kind of code --- .../variables/sources/instance-dependent/get-ssm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configuration/variables/sources/instance-dependent/get-ssm.js b/lib/configuration/variables/sources/instance-dependent/get-ssm.js index 89cc31dfd3..23da327817 100644 --- a/lib/configuration/variables/sources/instance-dependent/get-ssm.js +++ b/lib/configuration/variables/sources/instance-dependent/get-ssm.js @@ -37,7 +37,7 @@ module.exports = (serverlessInstance) => { ); } catch (error) { // Check for normalized error code instead of native one - if (error.code === 'AWS_S_S_M_GET_PARAMETER_PARAMETER_NOT_FOUND') return null; + if (error.code === 'AWS_S_S_M_GET_PARAMETER_PARAMETER_NOT_FOUND' || error.code === 'ParameterNotFound') return null; throw error; } })(); From 076f30438df877a39357011241f8eb2520dfa076 Mon Sep 17 00:00:00 2001 From: "alexander.miehe" Date: Mon, 10 Nov 2025 11:42:37 +0100 Subject: [PATCH 2/2] * lint --- .../variables/sources/instance-dependent/get-ssm.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/configuration/variables/sources/instance-dependent/get-ssm.js b/lib/configuration/variables/sources/instance-dependent/get-ssm.js index 23da327817..31e4ac8066 100644 --- a/lib/configuration/variables/sources/instance-dependent/get-ssm.js +++ b/lib/configuration/variables/sources/instance-dependent/get-ssm.js @@ -37,7 +37,12 @@ module.exports = (serverlessInstance) => { ); } catch (error) { // Check for normalized error code instead of native one - if (error.code === 'AWS_S_S_M_GET_PARAMETER_PARAMETER_NOT_FOUND' || error.code === 'ParameterNotFound') return null; + if ( + error.code === 'AWS_S_S_M_GET_PARAMETER_PARAMETER_NOT_FOUND' || + error.code === 'ParameterNotFound' + ) { + return null; + } throw error; } })();