Skip to content

Commit

Permalink
Merge pull request #63 from depot/increase-max-results
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Sep 22, 2023
2 parents 7e03704 + 4e22a20 commit 866fa9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const tagFilter = {Name: 'tag:depot-connection', Values: [CLOUD_AGENT_CONNECTION

/** Queries for all managed instances */
async function getInstancesState() {
const res = await client.send(new DescribeInstancesCommand({Filters: [tagFilter]}))
const res = await client.send(new DescribeInstancesCommand({Filters: [tagFilter], MaxResults: 500}))
const instances = res.Reservations?.flatMap((r) => r.Instances || []) || []
return instances.reduce(
(acc, instance) => {
Expand Down

0 comments on commit 866fa9b

Please sign in to comment.