This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(runners): upgrade aws sdk v2 to v3 (#3138)
* fix(runners): upgrade aws sdk v2 to v3 * migrate to v3 * refactor * refactor types for runners module * fix: added pagination for EC2 DescribeInstancesCommand. --------- Co-authored-by: Navdeep Gupta <[email protected]>
- Loading branch information
1 parent
e53545c
commit 48da039
Showing
9 changed files
with
1,023 additions
and
949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { DefaultTargetCapacityType, SpotAllocationStrategy } from '@aws-sdk/client-ec2'; | ||
|
||
export type RunnerType = 'Org' | 'Repo'; | ||
|
||
export interface RunnerList { | ||
instanceId: string; | ||
launchTime?: Date; | ||
owner?: string; | ||
type?: string; | ||
repo?: string; | ||
org?: string; | ||
} | ||
|
||
export interface RunnerInfo { | ||
instanceId: string; | ||
launchTime?: Date; | ||
owner: string; | ||
type: string; | ||
} | ||
|
||
export interface ListRunnerFilters { | ||
runnerType?: RunnerType; | ||
runnerOwner?: string; | ||
environment?: string; | ||
statuses?: string[]; | ||
} | ||
|
||
export interface RunnerInputParameters { | ||
runnerServiceConfig: string[]; | ||
environment: string; | ||
runnerType: RunnerType; | ||
runnerOwner: string; | ||
ssmTokenPath: string; | ||
subnets: string[]; | ||
launchTemplateName: string; | ||
ec2instanceCriteria: { | ||
instanceTypes: string[]; | ||
targetCapacityType: DefaultTargetCapacityType; | ||
maxSpotPrice?: string; | ||
instanceAllocationStrategy: SpotAllocationStrategy; | ||
}; | ||
numberOfRunners?: number; | ||
amiIdSsmParameterName?: string; | ||
} |
Oops, something went wrong.