Skip to content

Conversation

@SmallNic
Copy link
Contributor

Once I added an 11th param to our param store in SSM, I noticed we were only getting 10 results back. The AWS SDK docs revealed that we could set the max number of results to increase the results or take advantage of the NextToken

If the service reaches an internal limit while processing the results, it stops the operation and returns the matching values up to that point and a NextToken. You can specify the NextToken in a subsequent call to get the next set of results.

I updated the code so that getParametersByPath calls itself again if the NextToken output tells us there are more params to be fetched.

getParametersByPath calls itself again if the NextToken output tells us there are more params to be fetched
@rkit
Copy link
Owner

rkit commented Aug 28, 2022

Thank you! I'll release this update in about a week.

@SmallNic
Copy link
Contributor Author

Much appreciated @rkit !

@SmallNic
Copy link
Contributor Author

SmallNic commented Sep 7, 2022

Hey @rkit, wanted to check in again and see if you know when you'll have time to check this out for us?

@rkit rkit merged commit 801395f into rkit:master Sep 9, 2022
@rkit
Copy link
Owner

rkit commented Sep 9, 2022

Done. Thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants