Ion/get-params throws exception when returning more than 10 values

The get-params function is currently limited to 10 parameters, which the same as the GetParametersByPath API’s default MaxResults:

https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_GetParametersByPath.html

MaxResults
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 10.

Required: No

get-params is a helper function. The AWS API has the ability to accept a NextToken for pagination of results, but we have not implemented that in our get-params helper function. However, you could write your own get-params using the GetParametersByPath API’s Next Token to return more than 10 params.