You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…[Failed to get parameters from SSM] 1 validation error detected: Value '[<11 parameters name>]' at 'names' failed to satisfy constraint: Member must have length less than or equal to 10.
Function Shield is not supported in node v0.12, so in the near term, removing the token for that will bring you down to the api limit of 10. Additionally, parameters that are not secret could be moved to the process.env scope.
If I recall correctly this is a limitation of the AWS SDK and would require extending the middleware to support pagination making it more complicated. I'm in the early stages of scoping middy v2 which will update the AWS SDK to v3 which supports generators which could solve this.
Hi,
I have updated the node version as we are using node v10 not node v12.
Also all the 11 parameters are secure strings and needed to fetch from parameter store.
(Thanks for reporting an issue! Please make sure you click the link above to view the issue guidelines, then fill out the blanks below.)
What are the steps to reproduce this issue?
ex:
ssm({
names: {
Key: KeyParameterName,
FUNCTION_SHIELD_TOKEN: functionShieldTokenParameterName,
QueueName1: QueueNameParameter1,
QueueName2: QueueNameParameter2,
Password1: PasswordParameterName,
TenancyName: TenancyNameParameterName,
Url: UrlParameterName,
Username: UsernameParameterName,
BaseUrl: BaseUrlParameterName,
ApiKey: ApiKeyParameterName,
Sender:SenderParameterName
},
setToContext: true,
cache: true,
cacheExpiryInMillis: 300000
})
What happens?
…[Failed to get parameters from SSM] 1 validation error detected: Value '[<11 parameters name>]' at 'names' failed to satisfy constraint: Member must have length less than or equal to 10.
What were you expecting to happen?
…To fetch value of all the parameters
Any logs, error output, etc?
(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)
Any other comments?
…
What versions of software are you using?
Node.js Version: … 10
Middy Version: … 1.5
AWS SDK Version: …1.7
The text was updated successfully, but these errors were encountered: