Skip to content

Commit

Permalink
Increase max-results to 500
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Sep 22, 2023
1 parent 7e03704 commit 4e22a20
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 4e22a20

Please sign in to comment.