Skip to content

Commit 7846b18

Browse files
authored
Merge pull request #112 from cloudgraphdev/beta
Release 0.85.0
2 parents 4a2c283 + 2caf4c3 commit 7846b18

File tree

3 files changed

+43
-3
lines changed

3 files changed

+43
-3
lines changed

CHANGELOG.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
1-
# [0.85.0](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.84.0...0.85.0) (2023-02-11)
1+
## [0.85.1-beta.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.85.0...0.85.1-beta.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.1-alpha.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.85.0...0.85.1-alpha.1) (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+
15+
# [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)
16+
17+
18+
### Bug Fixes
19+
20+
* **auth:** add debug log for mfa ([d698c68](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/d698c683375b7b890f4e86305307d5cb03180775))
21+
22+
# [0.85.0-beta.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.84.0...0.85.0-beta.1) (2023-02-11)
23+
24+
25+
### Features
26+
27+
* **auth:** support mfa based auth ([6c81f60](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/6c81f6097a1c2eef7f0f48e7c25bcade173010e6))
28+
29+
# [0.85.0-alpha.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.84.0...0.85.0-alpha.1) (2023-02-11)
230

331

432
### Features

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",
3+
"version": "0.85.1-beta.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)