Skip to content

Commit 0b7737c

Browse files
authored
Merge pull request #111 from Engerim/fix-get-ssm-variable-issue
Fix issue with ssm variables not found
2 parents 4c48292 + 076f304 commit 0b7737c

File tree

1 file changed

+6
-1
lines changed
  • lib/configuration/variables/sources/instance-dependent

1 file changed

+6
-1
lines changed

lib/configuration/variables/sources/instance-dependent/get-ssm.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ module.exports = (serverlessInstance) => {
3737
);
3838
} catch (error) {
3939
// Check for normalized error code instead of native one
40-
if (error.code === 'AWS_S_S_M_GET_PARAMETER_PARAMETER_NOT_FOUND') return null;
40+
if (
41+
error.code === 'AWS_S_S_M_GET_PARAMETER_PARAMETER_NOT_FOUND' ||
42+
error.code === 'ParameterNotFound'
43+
) {
44+
return null;
45+
}
4146
throw error;
4247
}
4348
})();

0 commit comments

Comments
 (0)