File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed
Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1+ ## [ 0.85.1-alpha.1] ( https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.85.0...0.85.1-alpha.1 ) (2023-02-11)
2+
3+
4+ ### Bug Fixes
5+
6+ * ** auth:** add debug log for mfa ([ d698c68] ( https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/d698c683375b7b890f4e86305307d5cb03180775 ) )
7+
8+ # [ 0.85.0-alpha.2] ( https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.85.0-alpha.1...0.85.0-alpha.2 ) (2023-02-11)
9+
10+
11+ ### Bug Fixes
12+
13+ * ** auth:** add debug log for mfa ([ d698c68] ( https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/d698c683375b7b890f4e86305307d5cb03180775 ) )
14+
115# [ 0.85.0-beta.1] ( https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.84.0...0.85.0-beta.1 ) (2023-02-11)
216
317
Original file line number Diff line number Diff line change 11{
22 "name" : " @cloudgraph/cg-provider-aws" ,
3- "version" : " 0.85.0-beta .1" ,
3+ "version" : " 0.85.1-alpha .1" ,
44 "description" : " cloud-graph provider plugin for AWS used to fetch AWS cloud data." ,
55 "publishConfig" : {
66 "registry" : " https://registry.npmjs.org/" ,
Original file line number Diff line number Diff line change @@ -310,7 +310,19 @@ export default class Provider extends CloudGraph.Client {
310310 if ( profile && profile !== 'default' ) {
311311 let creds : AWS . Credentials
312312 const credsFunction = fromIni ( {
313- profile
313+ profile,
314+ // MFA token support
315+ mfaCodeProvider : async ( ) => {
316+ this . logger . debug ( 'MFA token needed, requesting...' )
317+ const { mfaToken = '' } : { mfaToken : string } = await this . interface . prompt ( [
318+ {
319+ type : 'input' ,
320+ message : `Please enter the MFA token for ${ profile } ` ,
321+ name : 'mfaToken'
322+ } ,
323+ ] )
324+ return mfaToken
325+ }
314326 } )
315327 if ( creds ) {
316328 sts = new AWS . STS ( { credentials : await credsFunction ( ) } )
You can’t perform that action at this time.
0 commit comments