Skip to content

Commit f1c923d

Browse files
committed
set max results to 10
the amazon ssm api dictates this, and, 10 is the max
1 parent d992491 commit f1c923d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/ssm/ssm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (b *Backend) fetchParams(ctx context.Context) error {
4141
Path: &b.ssmPath,
4242
Recursive: ptr.Bool(true),
4343
WithDecryption: ptr.Bool(true),
44-
MaxResults: ptr.Int64(1000),
44+
MaxResults: ptr.Int64(10),
4545
}
4646

4747
for {

backend/ssm/ssm_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ func getSSMOpts(path string) *ssm.GetParametersByPathInput {
6666
Path: &path,
6767
Recursive: ptr.Bool(true),
6868
WithDecryption: ptr.Bool(true),
69-
MaxResults: ptr.Int64(1000),
69+
MaxResults: ptr.Int64(10),
7070
}
7171
}

0 commit comments

Comments
 (0)