diff --git a/lib/configuration/variables/sources/instance-dependent/get-ssm.js b/lib/configuration/variables/sources/instance-dependent/get-ssm.js index 89cc31dfd..31e4ac806 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') return null; + if ( + error.code === 'AWS_S_S_M_GET_PARAMETER_PARAMETER_NOT_FOUND' || + error.code === 'ParameterNotFound' + ) { + return null; + } throw error; } })();