From 56630d152f10e715f59c646c507382c055d1db4f Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 13 Jul 2020 13:46:30 +0200 Subject: [PATCH] DescribeAutoScalingGroups: Increase MaxRecords to 100 The default value is 50 and the maximum value is 100. If we want to have more than 100 records, we have to implement pagination via `NextToken`. --- library/Aws/AwsClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Aws/AwsClient.php b/library/Aws/AwsClient.php index c9c191a..860d2e3 100644 --- a/library/Aws/AwsClient.php +++ b/library/Aws/AwsClient.php @@ -28,7 +28,9 @@ public function getAutoscalingConfig() { $objects = array(); $client = $this->sdk()->createAutoScaling(); - $res = $client->describeAutoScalingGroups(); + $res = $client->describeAutoScalingGroups([ + 'MaxRecords' => 100 + ]); foreach ($res->get('AutoScalingGroups') as $entry) {