Skip to content

Commit

Permalink
Merge pull request #55 from depot/simulated-capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Aug 21, 2023
2 parents c91eab9 + 0cffc4e commit ea11596
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ async function runInstance(machine: GetDesiredStateResponse_NewMachine, subnetID
return
}

if (subnetID === 'subnet-0401dcbe48439ad9b') {
throw new Error('InsufficientInstanceCapacity: simulating capacity error')
}

// Construct user data with cloud connection ID
const userData = `
#!/bin/bash
Expand Down

0 comments on commit ea11596

Please sign in to comment.