Skip to content

Commit

Permalink
fix: update ec2-types (#298)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hoon Oh <hoon@hoonoh.net>
  • Loading branch information
github-actions[bot] and hoonoh committed Nov 8, 2020
1 parent 6175343 commit 953f72d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ import {
regionNames,
} from './module';

// https://github.com/yargs/yargs/issues/1519
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/no-explicit-any
(process.stdout as any)._handle.setBlocking(true);

export const main = (argvInput?: string[]): Promise<void> =>
new Promise((res, rej): void => {
const y = yargs()
Expand Down
2 changes: 2 additions & 0 deletions src/constants/ec2-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const instanceFamilyAcceleratedComputing = [
'p2',
'p3',
'p3dn',
'p4d',
] as const;

export const instanceFamily = {
Expand Down Expand Up @@ -444,6 +445,7 @@ export const allInstances = [
'p3.8xlarge',
'p3.16xlarge',
'p3dn.24xlarge',
'p4d.24xlarge',
] as const;

export type InstanceType = typeof allInstances[number];
10 changes: 6 additions & 4 deletions test/__snapshots__/cli.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ Options:
\\"g2.8xlarge\\", \\"g3.4xlarge\\", \\"g3.8xlarge\\", \\"g3.16xlarge\\", \\"g3s.xlarge\\",
\\"g4dn.xlarge\\", \\"g4dn.2xlarge\\", \\"g4dn.4xlarge\\", \\"g4dn.8xlarge\\",
\\"g4dn.12xlarge\\", \\"g4dn.16xlarge\\", \\"g4dn.metal\\", \\"p2.xlarge\\", \\"p2.8xlarge\\",
\\"p2.16xlarge\\", \\"p3.2xlarge\\", \\"p3.8xlarge\\", \\"p3.16xlarge\\", \\"p3dn.24xlarge\\"]
\\"p2.16xlarge\\", \\"p3.2xlarge\\", \\"p3.8xlarge\\", \\"p3.16xlarge\\", \\"p3dn.24xlarge\\",
\\"p4d.24xlarge\\"]
--family EC2 instance family.
[array] [choices: \\"general\\", \\"compute\\", \\"memory\\", \\"storage\\",
\\"acceleratedComputing\\"]
Expand All @@ -213,7 +214,7 @@ Options:
\\"c4\\", \\"c5\\", \\"c5a\\", \\"c5ad\\", \\"c5d\\", \\"c5n\\", \\"c6g\\", \\"c6gd\\", \\"r3\\", \\"r4\\", \\"r5\\",
\\"r5a\\", \\"r5ad\\", \\"r5d\\", \\"r5dn\\", \\"r5n\\", \\"r6g\\", \\"r6gd\\", \\"x1\\", \\"x1e\\", \\"z1d\\", \\"d2\\",
\\"h1\\", \\"i2\\", \\"i3\\", \\"i3en\\", \\"inf1\\", \\"f1\\", \\"g2\\", \\"g3\\", \\"g3s\\", \\"g4dn\\", \\"p2\\", \\"p3\\",
\\"p3dn\\"]
\\"p3dn\\", \\"p4d\\"]
-s, --size EC2 instance sizes.
[array] [choices: \\"nano\\", \\"micro\\", \\"small\\", \\"medium\\", \\"large\\", \\"xlarge\\",
\\"2xlarge\\", \\"3xlarge\\", \\"4xlarge\\", \\"6xlarge\\", \\"8xlarge\\", \\"9xlarge\\", \\"10xlarge\\",
Expand Down Expand Up @@ -490,7 +491,8 @@ Options:
\\"g2.8xlarge\\", \\"g3.4xlarge\\", \\"g3.8xlarge\\", \\"g3.16xlarge\\", \\"g3s.xlarge\\",
\\"g4dn.xlarge\\", \\"g4dn.2xlarge\\", \\"g4dn.4xlarge\\", \\"g4dn.8xlarge\\",
\\"g4dn.12xlarge\\", \\"g4dn.16xlarge\\", \\"g4dn.metal\\", \\"p2.xlarge\\", \\"p2.8xlarge\\",
\\"p2.16xlarge\\", \\"p3.2xlarge\\", \\"p3.8xlarge\\", \\"p3.16xlarge\\", \\"p3dn.24xlarge\\"]
\\"p2.16xlarge\\", \\"p3.2xlarge\\", \\"p3.8xlarge\\", \\"p3.16xlarge\\", \\"p3dn.24xlarge\\",
\\"p4d.24xlarge\\"]
--family EC2 instance family.
[array] [choices: \\"general\\", \\"compute\\", \\"memory\\", \\"storage\\",
\\"acceleratedComputing\\"]
Expand All @@ -500,7 +502,7 @@ Options:
\\"c4\\", \\"c5\\", \\"c5a\\", \\"c5ad\\", \\"c5d\\", \\"c5n\\", \\"c6g\\", \\"c6gd\\", \\"r3\\", \\"r4\\", \\"r5\\",
\\"r5a\\", \\"r5ad\\", \\"r5d\\", \\"r5dn\\", \\"r5n\\", \\"r6g\\", \\"r6gd\\", \\"x1\\", \\"x1e\\", \\"z1d\\", \\"d2\\",
\\"h1\\", \\"i2\\", \\"i3\\", \\"i3en\\", \\"inf1\\", \\"f1\\", \\"g2\\", \\"g3\\", \\"g3s\\", \\"g4dn\\", \\"p2\\", \\"p3\\",
\\"p3dn\\"]
\\"p3dn\\", \\"p4d\\"]
-s, --size EC2 instance sizes.
[array] [choices: \\"nano\\", \\"micro\\", \\"small\\", \\"medium\\", \\"large\\", \\"xlarge\\",
\\"2xlarge\\", \\"3xlarge\\", \\"4xlarge\\", \\"6xlarge\\", \\"8xlarge\\", \\"9xlarge\\", \\"10xlarge\\",
Expand Down

0 comments on commit 953f72d

Please sign in to comment.