Skip to content

Commit 5ea6233

Browse files
authored
Merge pull request #109 from cloudgraphdev/alpha
beta release
2 parents 52a95f0 + eb27020 commit 5ea6233

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# [0.85.0-alpha.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.84.0...0.85.0-alpha.1) (2023-02-11)
2+
3+
4+
### Features
5+
6+
* **auth:** support mfa based auth ([6c81f60](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/6c81f6097a1c2eef7f0f48e7c25bcade173010e6))
7+
8+
# [0.84.0](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.1...0.84.0) (2023-01-24)
9+
10+
11+
### Features
12+
13+
* **CG-1311:** add AWS security hub ([067bf70](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/067bf70678fd48b60f97feb6c2390e6ae31ea358))
14+
* **CG-1311:** update README ([b36b426](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/b36b426f8c25a2ebc96934fd7236aec669080083))
15+
* **creds:** update credentials flow to support sso ([db29e83](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/db29e8339cd8e6f481333cdeccf83ca4568439b1))
16+
117
# [0.84.0-beta.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.1...0.84.0-beta.1) (2023-01-24)
218

319

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.84.0-beta.1",
3+
"version": "0.85.0-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: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,18 @@ 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+
const { mfaToken = '' }: { mfaToken: string } = await this.interface.prompt([
317+
{
318+
type: 'input',
319+
message: `Please enter the MFA token for ${profile}`,
320+
name: 'mfaToken'
321+
},
322+
])
323+
return mfaToken
324+
}
314325
})
315326
if (creds) {
316327
sts = new AWS.STS({ credentials: await credsFunction() })

0 commit comments

Comments
 (0)