diff --git a/dist/src/lib/getIamKey.js b/dist/src/lib/getIamKey.js index 3fa7d5e7..65cc2fb9 100644 --- a/dist/src/lib/getIamKey.js +++ b/dist/src/lib/getIamKey.js @@ -14,7 +14,7 @@ const promptForAlksAccountAndRole_1 = require("./promptForAlksAccountAndRole"); const getKeys_1 = require("./getKeys"); const addKey_1 = require("./addKey"); const getAwsAccountFromString_1 = require("./getAwsAccountFromString"); -function getIamKey(alksAccount, alksRole, forceNewSession = false, filterFavorites = false, iamOnly = true) { +function getIamKey(alksAccount, alksRole, forceNewSession = false, filterFavorites = false, iamOnly = true, sessionDuration = undefined) { var _a, _b; return tslib_1.__awaiter(this, void 0, void 0, function* () { yield (0, ensureConfigured_1.ensureConfigured)(); @@ -59,7 +59,7 @@ function getIamKey(alksAccount, alksRole, forceNewSession = false, filterFavorit accountId: awsAccount.id, role: alksRole, }); - const duration = Math.min(loginRole.maxKeyDuration, 12); + const duration = Math.min(loginRole.maxKeyDuration, sessionDuration !== null && sessionDuration !== void 0 ? sessionDuration : 12); console.error(cli_color_1.white.underline(`Creating new session in "${(_b = awsAccount.label) !== null && _b !== void 0 ? _b : awsAccount.alias}" (id=${awsAccount.id} alias=${awsAccount.alias}) for ${alksRole}`)); let alksKey; try { diff --git a/dist/src/lib/getIamKey.js.map b/dist/src/lib/getIamKey.js.map index 4fd606a1..e222590d 100644 --- a/dist/src/lib/getIamKey.js.map +++ b/dist/src/lib/getIamKey.js.map @@ -1 +1 @@ -{"version":3,"file":"getIamKey.js","sourceRoot":"","sources":["../../../src/lib/getIamKey.ts"],"names":[],"mappings":";;;;AAAA,yCAAkC;AAClC,2CAAiD;AACjD,uCAAoC;AACpC,4DAA4B;AAE5B,+BAA4B;AAC5B,2DAAwD;AAExD,yDAAsD;AACtD,uCAAoC;AACpC,+EAA4E;AAC5E,uCAAoC;AACpC,qCAAkC;AAClC,uEAAoE;AAEpE,SAAsB,SAAS,CAC7B,WAA+B,EAC/B,QAA4B,EAC5B,kBAA2B,KAAK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AAE,OAAO,CAAC,SAAS;YAC5B,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,OAAO,EAAE,IAAA,gBAAM,GAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE;YACjD,WAAW,EAAE,UAAU,CAAC,EAAE;YAC1B,QAAQ;YACR,KAAK,EAAE,IAAI;SACZ,CAAC;QAEF,IAAA,SAAG,EAAC,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YACzC,MAAM,EAAE,IAAI;YACZ,GAAG,EAAE,aAAa;SACnB,CAAC,CAAC;QACH,MAAM,IAAA,eAAM,EACV,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,YAAY,EAChB,UAAU,CAAC,EAAE,EACb,QAAQ,EACR,GAAG,CAAC,OAAO,EACX,IAAI,EACJ,IAAI,CACL,CAAC;QAEF,OAAO,GAAG,CAAC;;CACZ;AArHD,8BAqHC"} \ No newline at end of file +{"version":3,"file":"getIamKey.js","sourceRoot":"","sources":["../../../src/lib/getIamKey.ts"],"names":[],"mappings":";;;;AAAA,yCAAkC;AAClC,2CAAiD;AACjD,uCAAoC;AACpC,4DAA4B;AAE5B,+BAA4B;AAC5B,2DAAwD;AAExD,yDAAsD;AACtD,uCAAoC;AACpC,+EAA4E;AAC5E,uCAAoC;AACpC,qCAAkC;AAClC,uEAAoE;AAEpE,SAAsB,SAAS,CAC7B,WAA+B,EAC/B,QAA4B,EAC5B,kBAA2B,KAAK,EAChC,kBAA2B,KAAK,EAChC,UAAmB,IAAI,EACvB,kBAAsC,SAAS;;;QAE/C,MAAM,IAAA,mCAAgB,GAAE,CAAC;QAEzB,IAAA,SAAG,EAAC,cAAc,CAAC,CAAC;QACpB,MAAM,IAAI,GAAG,MAAM,IAAA,iBAAO,GAAE,CAAC;QAE7B,iDAAiD;QACjD,IAAI,CAAC,WAAW,IAAI,CAAC,QAAQ,EAAE;YAC7B,IAA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EAAE,IAAI;SACZ,CAAC;QAEF,IAAA,SAAG,EAAC,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YACzC,MAAM,EAAE,IAAI;YACZ,GAAG,EAAE,aAAa;SACnB,CAAC,CAAC;QACH,MAAM,IAAA,eAAM,EACV,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,YAAY,EAChB,UAAU,CAAC,EAAE,EACb,QAAQ,EACR,GAAG,CAAC,OAAO,EACX,IAAI,EACJ,IAAI,CACL,CAAC;QAEF,OAAO,GAAG,CAAC;;CACZ;AAtHD,8BAsHC"} \ No newline at end of file diff --git a/dist/src/lib/handlers/alks-sessions-open.js b/dist/src/lib/handlers/alks-sessions-open.js index 11c1c236..15a0e670 100644 --- a/dist/src/lib/handlers/alks-sessions-open.js +++ b/dist/src/lib/handlers/alks-sessions-open.js @@ -28,7 +28,7 @@ function handleAlksSessionsOpen(options) { (0, errorAndExit_1.errorAndExit)('Unable to load default account!'); } } - const key = yield (0, getIamKey_1.getIamKey)(alksAccount, alksRole, options.newSession, options.favorites, !!options.iam); + const key = yield (0, getIamKey_1.getIamKey)(alksAccount, alksRole, options.newSession, options.favorites, !!options.iam, options.duration); console.log((0, getKeyOutput_1.getKeyOutput)(options.output || (yield (0, outputFormat_1.getOutputFormat)()), key, options.namedProfile, options.force)); yield (0, checkForUpdate_1.checkForUpdate)(); } diff --git a/dist/src/lib/handlers/alks-sessions-open.js.map b/dist/src/lib/handlers/alks-sessions-open.js.map index 319e8bd3..c7b9d737 100644 --- a/dist/src/lib/handlers/alks-sessions-open.js.map +++ b/dist/src/lib/handlers/alks-sessions-open.js.map @@ -1 +1 @@ -{"version":3,"file":"alks-sessions-open.js","sourceRoot":"","sources":["../../../../src/lib/handlers/alks-sessions-open.ts"],"names":[],"mappings":";;;;AACA,sDAAmD;AACnD,kDAA+C;AAC/C,4CAAyC;AACzC,kDAA+C;AAC/C,gCAA6B;AAC7B,0DAAuD;AACvD,sDAAsD;AACtD,gDAAgD;AAChD,wDAAwD;AAExD,SAAsB,sBAAsB,CAAC,OAA+B;;QAC1E,IAAI,WAAW,GAAuB,OAAO,CAAC,OAAO,CAAC;QACtD,IAAI,QAAQ,GAAuB,OAAO,CAAC,IAAI,CAAC;QAEhD,8DAA8D;QAC9D,IAAI,WAAW,IAAI,CAAC,QAAQ,EAAE;YAC5B,IAAA,SAAG,EAAC,qCAAqC,CAAC,CAAC;YAC3C,QAAQ,GAAG,IAAA,mCAAgB,EAAC,WAAW,CAAC,CAAC;SAC1C;QAED,IAAI;YACF,IAAI,OAAO,CAAC,OAAO,EAAE;gBACnB,WAAW,GAAG,MAAM,IAAA,4BAAc,GAAE,CAAC;gBACrC,QAAQ,GAAG,MAAM,IAAA,sBAAW,GAAE,CAAC;gBAC/B,IAAI,CAAC,WAAW,IAAI,CAAC,QAAQ,EAAE;oBAC7B,IAAA,2BAAY,EAAC,iCAAiC,CAAC,CAAC;iBACjD;aACF;YAED,MAAM,GAAG,GAAG,MAAM,IAAA,qBAAS,EACzB,WAAW,EACX,QAAQ,EACR,OAAO,CAAC,UAAU,EAClB,OAAO,CAAC,SAAS,EACjB,CAAC,CAAC,OAAO,CAAC,GAAG,CACd,CAAC;YAEF,OAAO,CAAC,GAAG,CACT,IAAA,2BAAY,EACV,OAAO,CAAC,MAAM,IAAI,CAAC,MAAM,IAAA,8BAAe,GAAE,CAAC,EAC3C,GAAG,EACH,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,KAAK,CACd,CACF,CAAC;YAEF,MAAM,IAAA,+BAAc,GAAE,CAAC;SACxB;QAAC,OAAO,GAAG,EAAE;YACZ,IAAA,2BAAY,EAAE,GAAa,CAAC,OAAO,EAAE,GAAY,CAAC,CAAC;SACpD;IACH,CAAC;CAAA;AAxCD,wDAwCC"} \ No newline at end of file +{"version":3,"file":"alks-sessions-open.js","sourceRoot":"","sources":["../../../../src/lib/handlers/alks-sessions-open.ts"],"names":[],"mappings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A;AAzCD,wDAyCC"} \ No newline at end of file diff --git a/dist/src/lib/handlers/alks-sessions-open.test.js b/dist/src/lib/handlers/alks-sessions-open.test.js index 7e5107fc..098be729 100644 --- a/dist/src/lib/handlers/alks-sessions-open.test.js +++ b/dist/src/lib/handlers/alks-sessions-open.test.js @@ -45,6 +45,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: {}, getKeyOutputFails: false, @@ -73,6 +74,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, getIamKeyFails: true }), Object.assign(Object.assign({}, defaultTestCase), { description: 'when getting a session key fails', shouldErr: true, options: { account: '012345678910/ALKSAdmin - awstest', @@ -83,6 +85,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: false, + duration: undefined, }, getIamKeyFails: true }), Object.assign(Object.assign({}, defaultTestCase), { description: 'when getOutputFormat fails', shouldErr: true, options: { account: '012345678910/ALKSAdmin - awstest', @@ -94,6 +97,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', alksRole: 'Admin', @@ -113,6 +117,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', alksRole: 'Admin', @@ -136,6 +141,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', alksRole: 'Admin', @@ -159,6 +165,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', alksRole: 'Admin', @@ -181,6 +188,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: false, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', alksRole: 'Admin', @@ -205,6 +213,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', alksRole: 'Admin', @@ -229,6 +238,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', alksRole: 'Admin', @@ -251,6 +261,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', alksRole: 'Admin', @@ -273,6 +284,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '998877665544/ALKSReadOnly - awsother', alksRole: 'ReadOnly', @@ -296,6 +308,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '444455556666/ALKSPowerUser - awsthing', alksRole: 'PowerUser', @@ -317,6 +330,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '998877665544/ALKSReadOnly - awsother', alksRole: 'ReadOnly', @@ -339,6 +353,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '444455556666/ALKSPowerUser - awsthing', alksRole: 'PowerUser', @@ -447,7 +462,7 @@ describe('handleAlksSessionsOpen', () => { } if (t.shouldGetIamKey) { it('attempts to fetch an IAM key', () => { - expect(getIamKey_1.getIamKey).toHaveBeenCalledWith(t.getIamKeyParams.alksAccount, t.getIamKeyParams.alksRole, t.getIamKeyParams.newSession, t.getIamKeyParams.favorites, t.getIamKeyParams.iamOnly); + expect(getIamKey_1.getIamKey).toHaveBeenCalledWith(t.getIamKeyParams.alksAccount, t.getIamKeyParams.alksRole, t.getIamKeyParams.newSession, t.getIamKeyParams.favorites, t.getIamKeyParams.iamOnly, t.getIamKeyParams.duration); }); } else { diff --git a/dist/src/lib/handlers/alks-sessions-open.test.js.map b/dist/src/lib/handlers/alks-sessions-open.test.js.map index 0311e8ab..633a2980 100644 --- a/dist/src/lib/handlers/alks-sessions-open.test.js.map +++ b/dist/src/lib/handlers/alks-sessions-open.test.js.map @@ -1 +1 @@ -{"version":3,"file":"alks-sessions-open.test.js","sourceRoot":"","sources":["../../../../src/lib/handlers/alks-sessions-open.test.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAE/C,sDAAmD;AACnD,0DAAuD;AACvD,kDAA+C;AAC/C,4CAAyC;AACzC,6DAA8D;AAE9D,sDAAsD;AACtD,gDAAgD;AAChD,wDAAwD;AAExD,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AAC7B,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAC/B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AACjC,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAClC,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAC/B,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;AACnC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAC1B,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AAC7B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAEpB,wBAAwB;AACxB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;AAEjE,sBAAsB;AACtB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,kBA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CAAC,CAAC"} \ No newline at end of file diff --git a/dist/src/lib/program.js b/dist/src/lib/program.js index e7972f3b..3e10b094 100644 --- a/dist/src/lib/program.js +++ b/dist/src/lib/program.js @@ -57,6 +57,7 @@ sessions .option('-r, --role ', 'the ALKS IAM role to use to perform the request') .option('-i, --iam', 'create an IAM session') .option('-d, --default', 'uses your default account from "alks developer configure"') + .option('-D, --duration', 'the duration of the session in hours. If the duration is over the max duration allowed for the role, the max duration will be used instead', '12') .option('-N, --newSession', 'forces a new session to be generated') .option('-p, --password ', 'my password') .option('-o, --output ', 'output format (' + outputValues.join(', ') + ')') diff --git a/dist/src/lib/program.js.map b/dist/src/lib/program.js.map index 8f48771c..9e96f996 100644 --- a/dist/src/lib/program.js.map +++ b/dist/src/lib/program.js.map @@ -1 +1 @@ -{"version":3,"file":"program.js","sourceRoot":"","sources":["../../../src/lib/program.ts"],"names":[],"mappings":";;AAAA,yCAAoC;AACpC,qDAA6C;AAC7C,4DAIgC;AAChC,2EAA4E;AAC5E,uFAAwF;AACxF,2EAA4E;AAC5E,iFAAkF;AAClF,uEAAwE;AACxE,yEAA0E;AAC1E,iFAAkF;AAClF,2EAA4E;AAC5E,6EAA8E;AAC9E,2EAA4E;AAC5E,uFAAwF;AACxF,6EAA8E;AAC9E,2EAA4E;AAC5E,8EAA+E;AAC/E,qFAAsF;AACtF,uFAAwF;AACxF,6EAA8E;AAC9E,+EAAgF;AAChF,qFAAsF;AACtF,iFAAkF;AAClF,uFAAwF;AACxF,gEAA8D;AAC9D,yCAAgC;AAChC,wEAAyE;AAEzE,MAAM,YAAY,GAAG,IAAA,iCAAe,GAAE,CAAC;AACvC,MAAM,QAAQ,GAAG,+BAA+B,CAAC;AACjD,MAAM,YAAY,GAAG,6CAA6C,CAAC;AAEnE,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO,CAAC,YAAY,EAAE,CAAC;AAEvB,OAAO,CAAC,eAAe,CAAC;IACtB,QAAQ,EAAE,C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,CAClD;KACA,MAAM,CAAC,WAAW,EAAE,uBAAuB,CAAC;KAC5C,MAAM,CAAC,2BAA2B,EAAE,aAAa,CAAC;KAClD,MAAM,CAAC,iBAAiB,EAAE,2BAA2B,CAAC;KACtD,MAAM,CAAC,iDAAyB,CAAC,CAAC;AAErC,kBAAe,OAAO,CAAC"} \ No newline at end of file +{"version":3,"file":"program.js","sourceRoot":"","sources":["../../../src/lib/program.ts"],"names":[],"mappings":";;AAAA,yCAAoC;AACpC,qDAA6C;AAC7C,4DAIgC;AAChC,2EAA4E;AAC5E,uFAAwF;AACxF,2EAA4E;AAC5E,iFAAkF;AAClF,uEAAwE;AACxE,yEAA0E;AAC1E,iFAAkF;AAClF,2EAA4E;AAC5E,6EAA8E;AAC9E,2EAA4E;AAC5E,uFAAwF;AACxF,6EAA8E;AAC9E,2EAA4E;AAC5E,8EAA+E;AAC/E,qFAAsF;AACtF,uFAAwF;AACxF,6EAA8E;AAC9E,+EAAgF;AAChF,qFAAsF;AACtF,iFAAkF;AAClF,uFAAwF;AACxF,gEAA8D;AAC9D,yCAAgC;AAChC,wEAAyE;AAEzE,MAAM,YAAY,GAAG,IAAA,iCAAe,GAAE,CAAC;AACvC,MAAM,QAAQ,GAAG,+BAA+B,CAAC;AACjD,MAAM,YAAY,GAAG,6CAA6C,CAAC;AAEnE,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO,CAAC,YAAY,EAAE,CAAC;AAEvB,OAAO,CAAC,eAAe,CAAC;IACtB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;QAChB,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,wBAAwB,CAAC,EAAE;YAC7C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAC3B;IACH,CAAC;CACF,CAAC,CAAC;AAEH,OAAO;KACJ,OAAO,CAAC,sBAAO,EAAE,WAAW,CAAC;KAC7B,MAAM,CAAC,eAAe,EAAE,qCAAqC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ff --git a/src/lib/getIamKey.ts b/src/lib/getIamKey.ts index b050030e..044535f2 100644 --- a/src/lib/getIamKey.ts +++ b/src/lib/getIamKey.ts @@ -18,7 +18,8 @@ export async function getIamKey( alksRole: string | undefined, forceNewSession: boolean = false, filterFavorites: boolean = false, - iamOnly: boolean = true + iamOnly: boolean = true, + sessionDuration: number | undefined = undefined ): Promise { await ensureConfigured(); @@ -84,7 +85,7 @@ export async function getIamKey( role: alksRole, }); - const duration = Math.min(loginRole.maxKeyDuration, 12); + const duration = Math.min(loginRole.maxKeyDuration, sessionDuration ?? 12); console.error( white.underline( diff --git a/src/lib/handlers/alks-sessions-open.test.ts b/src/lib/handlers/alks-sessions-open.test.ts index 41dd78c2..84db34bd 100644 --- a/src/lib/handlers/alks-sessions-open.test.ts +++ b/src/lib/handlers/alks-sessions-open.test.ts @@ -49,6 +49,7 @@ describe('handleAlksSessionsOpen', () => { newSession: boolean | undefined; favorites: boolean | undefined; iamOnly: boolean; + duration: number | undefined; }; key: Key; getKeyOutputFails: boolean; @@ -81,6 +82,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: {} as Key, getKeyOutputFails: false, @@ -130,6 +132,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, getIamKeyFails: true, }, @@ -150,6 +153,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: false, + duration: undefined, }, getIamKeyFails: true, }, @@ -172,6 +176,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', @@ -202,6 +207,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', @@ -239,6 +245,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', @@ -276,6 +283,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', @@ -311,6 +319,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: false, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', @@ -348,6 +357,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', @@ -385,6 +395,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', @@ -422,6 +433,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '012345678910/ALKSAdmin - awstest', @@ -459,6 +471,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '998877665544/ALKSReadOnly - awsother', @@ -498,6 +511,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '444455556666/ALKSPowerUser - awsthing', @@ -532,6 +546,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '998877665544/ALKSReadOnly - awsother', @@ -568,6 +583,7 @@ describe('handleAlksSessionsOpen', () => { newSession: undefined, favorites: undefined, iamOnly: true, + duration: undefined, }, key: { alksAccount: '444455556666/ALKSPowerUser - awsthing', @@ -684,7 +700,8 @@ describe('handleAlksSessionsOpen', () => { t.getIamKeyParams.alksRole, t.getIamKeyParams.newSession, t.getIamKeyParams.favorites, - t.getIamKeyParams.iamOnly + t.getIamKeyParams.iamOnly, + t.getIamKeyParams.duration ); }); } else { diff --git a/src/lib/handlers/alks-sessions-open.ts b/src/lib/handlers/alks-sessions-open.ts index 6af5a2fd..ebaf2970 100644 --- a/src/lib/handlers/alks-sessions-open.ts +++ b/src/lib/handlers/alks-sessions-open.ts @@ -33,7 +33,8 @@ export async function handleAlksSessionsOpen(options: commander.OptionValues) { alksRole, options.newSession, options.favorites, - !!options.iam + !!options.iam, + options.duration ); console.log( diff --git a/src/lib/program.ts b/src/lib/program.ts index 3542c088..e4f7f28c 100644 --- a/src/lib/program.ts +++ b/src/lib/program.ts @@ -1,9 +1,9 @@ import { Command } from 'commander'; import { version } from '../../package.json'; -import { - getOutputValues, - getOutputValuesAccounts, - getOutputValuesRoleTypes +import { + getOutputValues, + getOutputValuesAccounts, + getOutputValuesRoleTypes, } from '../lib/getOutputValues'; import { handleAlksSessionsOpen } from '../lib/handlers/alks-sessions-open'; import { handleAlksDeveloperConfigure } from '../lib/handlers/alks-developer-configure'; @@ -83,6 +83,11 @@ sessions '-d, --default', 'uses your default account from "alks developer configure"' ) + .option( + '-D, --duration', + 'the duration of the session in hours. If the duration is over the max duration allowed for the role, the max duration will be used instead', + '12' + ) .option('-N, --newSession', 'forces a new session to be generated') .option('-p, --password ', 'my password') .option( @@ -136,8 +141,8 @@ iam .description('list the available iam role types') .option( '-o, --output ', - 'output format (' + getOutputValuesRoleTypes().join(', ') + ')', - getOutputValuesRoleTypes()[0], + 'output format (' + getOutputValuesRoleTypes().join(', ') + ')', + getOutputValuesRoleTypes()[0] ) .action(handleAlksIamRoleTypes); @@ -349,7 +354,11 @@ developer .command('accounts') .description('shows current developer configuration') .option('-e, --export', 'export accounts to environment variables') - .option('-o, --output ', 'output format (' + getOutputValuesAccounts().join(', ') + ')', getOutputValuesAccounts()[0],) + .option( + '-o, --output ', + 'output format (' + getOutputValuesAccounts().join(', ') + ')', + getOutputValuesAccounts()[0] + ) .action(handleAlksDeveloperAccounts); developer