trek10inc / serverless-secrets

An opinionated tool for safely managing and deploying Serverless projects and their secrets.
Other
165 stars 27 forks source link

Fix getParameters() limit of 10 parameters #32

Open RishitKedia opened 6 years ago

RishitKedia commented 6 years ago

Hey there! 👋

So, getParameters() has a limit of getting a maximum of 10 parameters only. 😭

It results in the following error if the number of parameters is more than 10:

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1):
ValidationException: 1 validation error detected: Value '[omitted-parameter-names]' at 'names'
failed to satisfy constraint: Member must have length less than or equal to 10

This PR fixes this by calling getParameters() multiple times depending on the total number of parameters. 🎉