Skip to content

Commit b66e611

Browse files
authored
Merge pull request #114 from cloudgraphdev/alpha
beta release
2 parents b55b3d9 + 78ac2c5 commit b66e611

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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/",

src/services/index.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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() })

0 commit comments

Comments
 (0)