Skip to content

Commit

Permalink
DescribeAutoScalingGroups: Increase MaxRecords to 100
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
lippserd committed Jul 13, 2020
1 parent 45f8303 commit 56630d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Aws/AwsClient.php
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit 56630d1

Please sign in to comment.