From 50d48973b84fefed367ba2091fb3def5a81a5ed6 Mon Sep 17 00:00:00 2001 From: Giacomo Gatelli Date: Tue, 5 Dec 2017 13:36:07 +1100 Subject: [PATCH] Increase DescribeParameters batch size to 50 DescribeParameters' default batch size is 10, but the API supports a batch size up to 50. Increasing it to 50 reduces the number of requests made to Parameter Store. This should help reducing the likelyhood of getting rate limited by AWS (we are currently running into "ThrottlingException: Rate exceeded" every time we deploy) --- store/ssmstore.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/store/ssmstore.go b/store/ssmstore.go index 2bc87901..be2a5fb0 100644 --- a/store/ssmstore.go +++ b/store/ssmstore.go @@ -267,6 +267,7 @@ func (s *SSMStore) List(service string, includeValues bool) ([]Secret, error) { Values: []*string{aws.String("/" + service)}, }, }, + MaxResults: aws.Int64(50), NextToken: nextToken, } } else { @@ -277,6 +278,7 @@ func (s *SSMStore) List(service string, includeValues bool) ([]Secret, error) { Values: []*string{aws.String(service + ".")}, }, }, + MaxResults: aws.Int64(50), NextToken: nextToken, } }