@cloud-copilot/iam-collect 0.1.115 → 0.1.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli.js +55 -71
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/config/packageVersion.js +2 -2
- package/dist/cjs/config/packageVersion.js.map +1 -1
- package/dist/cjs/utils/readPackageFile.d.ts +2 -1
- package/dist/cjs/utils/readPackageFile.d.ts.map +1 -1
- package/dist/cjs/utils/readPackageFile.js +7 -4
- package/dist/cjs/utils/readPackageFile.js.map +1 -1
- package/dist/esm/cli.js +56 -72
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/config/packageVersion.js +3 -3
- package/dist/esm/config/packageVersion.js.map +1 -1
- package/dist/esm/utils/readPackageFile.d.ts +2 -1
- package/dist/esm/utils/readPackageFile.d.ts.map +1 -1
- package/dist/esm/utils/readPackageFile.js +8 -5
- package/dist/esm/utils/readPackageFile.js.map +1 -1
- package/dist/esm/utils/readPackageFileEsm.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/cjs/cli.js
CHANGED
|
@@ -19,109 +19,93 @@ if (process.env.AWS_DEFAULT_REGION && !process.env.AWS_REGION) {
|
|
|
19
19
|
process.env.AWS_REGION = process.env.AWS_DEFAULT_REGION;
|
|
20
20
|
}
|
|
21
21
|
const main = async () => {
|
|
22
|
-
const
|
|
23
|
-
const cli = (0, cli_1.parseCliArguments)('iam-collect', {
|
|
22
|
+
const cli = await (0, cli_1.parseCliArguments)('iam-collect', {
|
|
24
23
|
init: {
|
|
25
24
|
description: 'Initialize the iam-collect configuration file',
|
|
26
|
-
|
|
25
|
+
arguments: {}
|
|
27
26
|
},
|
|
28
27
|
download: {
|
|
29
28
|
description: 'Download IAM data and update indexes',
|
|
30
|
-
|
|
31
|
-
configFiles: {
|
|
32
|
-
type: 'string',
|
|
29
|
+
arguments: {
|
|
30
|
+
configFiles: (0, cli_1.stringArrayArgument)({
|
|
33
31
|
description: 'The configuration files to use',
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
accounts: {
|
|
37
|
-
type: 'string',
|
|
32
|
+
defaultValue: []
|
|
33
|
+
}),
|
|
34
|
+
accounts: (0, cli_1.stringArrayArgument)({
|
|
38
35
|
description: 'The account IDs to download from',
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
regions: {
|
|
42
|
-
type: 'string',
|
|
36
|
+
defaultValue: []
|
|
37
|
+
}),
|
|
38
|
+
regions: (0, cli_1.stringArrayArgument)({
|
|
43
39
|
description: 'The regions to download from',
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
services: {
|
|
47
|
-
type: 'string',
|
|
40
|
+
defaultValue: []
|
|
41
|
+
}),
|
|
42
|
+
services: (0, cli_1.stringArrayArgument)({
|
|
48
43
|
description: 'The services to download',
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
concurrency: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
noIndex: {
|
|
57
|
-
type: 'boolean',
|
|
44
|
+
defaultValue: []
|
|
45
|
+
}),
|
|
46
|
+
concurrency: (0, cli_1.numberArgument)({
|
|
47
|
+
description: 'The maximum number of concurrent downloads to allow. Defaults based on your system CPUs'
|
|
48
|
+
}),
|
|
49
|
+
noIndex: (0, cli_1.booleanArgument)({
|
|
58
50
|
description: 'Skip refreshing the indexes after downloading',
|
|
59
51
|
character: 'n'
|
|
60
|
-
},
|
|
61
|
-
writeOnly: {
|
|
62
|
-
type: 'boolean',
|
|
52
|
+
}),
|
|
53
|
+
writeOnly: (0, cli_1.booleanArgument)({
|
|
63
54
|
description: 'Only write data for discovered resources and ignore any existing data. May improve performance if you know you have no existing data',
|
|
64
55
|
character: 'w'
|
|
65
|
-
}
|
|
56
|
+
})
|
|
66
57
|
}
|
|
67
58
|
},
|
|
68
59
|
index: {
|
|
69
60
|
description: 'Refresh the IAM data indexes',
|
|
70
|
-
|
|
71
|
-
configFiles: {
|
|
72
|
-
type: 'string',
|
|
61
|
+
arguments: {
|
|
62
|
+
configFiles: (0, cli_1.stringArrayArgument)({
|
|
73
63
|
description: 'The configuration files to use',
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
partition: {
|
|
77
|
-
type: 'string',
|
|
64
|
+
defaultValue: []
|
|
65
|
+
}),
|
|
66
|
+
partition: (0, cli_1.stringArgument)({
|
|
78
67
|
description: 'The partition to refresh index data for. Defaults to aws',
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
accounts: {
|
|
82
|
-
type: 'string',
|
|
68
|
+
defaultValue: 'aws'
|
|
69
|
+
}),
|
|
70
|
+
accounts: (0, cli_1.stringArrayArgument)({
|
|
83
71
|
description: 'The account IDs to refresh index data for',
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
regions: {
|
|
87
|
-
type: 'string',
|
|
72
|
+
defaultValue: []
|
|
73
|
+
}),
|
|
74
|
+
regions: (0, cli_1.stringArrayArgument)({
|
|
88
75
|
description: 'The regions to refresh index data for',
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
services: {
|
|
92
|
-
type: 'string',
|
|
76
|
+
defaultValue: []
|
|
77
|
+
}),
|
|
78
|
+
services: (0, cli_1.stringArrayArgument)({
|
|
93
79
|
description: 'The services to refresh index data for',
|
|
94
|
-
|
|
95
|
-
},
|
|
96
|
-
concurrency: {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
values: 'single'
|
|
100
|
-
}
|
|
80
|
+
defaultValue: []
|
|
81
|
+
}),
|
|
82
|
+
concurrency: (0, cli_1.numberArgument)({
|
|
83
|
+
description: 'The maximum number of concurrent indexers to run. Defaults based on your system CPUs'
|
|
84
|
+
})
|
|
101
85
|
}
|
|
102
86
|
},
|
|
103
87
|
'analyze-logs': {
|
|
104
88
|
description: 'Analyze iam-collect trace logs and summarize job execution times',
|
|
105
|
-
|
|
106
|
-
logFile: {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
values: 'single'
|
|
110
|
-
}
|
|
89
|
+
arguments: {
|
|
90
|
+
logFile: (0, cli_1.stringArgument)({
|
|
91
|
+
description: 'The path to the log file to analyze'
|
|
92
|
+
})
|
|
111
93
|
}
|
|
112
94
|
}
|
|
113
95
|
}, {
|
|
114
|
-
log: {
|
|
115
|
-
type: 'enum',
|
|
96
|
+
log: (0, cli_1.enumArgument)({
|
|
116
97
|
description: 'The log level to use',
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
98
|
+
validValues: [...log_js_1.LogLevels] // Convert readonly to mutable array
|
|
99
|
+
})
|
|
120
100
|
}, {
|
|
121
101
|
envPrefix: 'IAM_COLLECT',
|
|
122
102
|
showHelpIfNoArgs: true,
|
|
123
103
|
requireSubcommand: true,
|
|
124
|
-
|
|
104
|
+
expectOperands: false,
|
|
105
|
+
version: {
|
|
106
|
+
currentVersion: packageVersion_js_1.iamCollectVersion,
|
|
107
|
+
checkForUpdates: '@cloud-copilot/iam-collect'
|
|
108
|
+
}
|
|
125
109
|
});
|
|
126
110
|
if (cli.args.log) {
|
|
127
111
|
(0, log_js_1.setLogLevel)(cli.args.log);
|
|
@@ -136,13 +120,13 @@ const main = async () => {
|
|
|
136
120
|
}
|
|
137
121
|
else if (cli.subcommand === 'download') {
|
|
138
122
|
const defaultConfig = './iam-collect.jsonc';
|
|
139
|
-
const configFiles = cli.args.configFiles
|
|
123
|
+
const configFiles = cli.args.configFiles.length > 0 ? cli.args.configFiles : [defaultConfig];
|
|
140
124
|
const configs = (0, configFile_js_1.loadConfigFiles)(configFiles);
|
|
141
125
|
await (0, download_js_1.downloadData)(configs, cli.args.accounts, cli.args.regions, cli.args.services, cli.args.concurrency, cli.args.noIndex, cli.args.writeOnly);
|
|
142
126
|
}
|
|
143
127
|
else if (cli.subcommand === 'index') {
|
|
144
128
|
const defaultConfig = './iam-collect.jsonc';
|
|
145
|
-
const configFiles = cli.args.configFiles
|
|
129
|
+
const configFiles = cli.args.configFiles.length > 0 ? cli.args.configFiles : [defaultConfig];
|
|
146
130
|
const configs = (0, configFile_js_1.loadConfigFiles)(configFiles);
|
|
147
131
|
await (0, index_js_1.index)(configs, cli.args.partition || 'aws', cli.args.accounts, cli.args.regions, cli.args.services, cli.args.concurrency);
|
|
148
132
|
}
|
package/dist/cjs/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";;;AAEA,4CAO2B;AAC3B,sDAA0D;AAC1D,0DAAwD;AACxD,sEAAyE;AACzE,gEAA+D;AAC/D,kEAA8D;AAC9D,wDAAqD;AACrD,+CAAwC;AAExC,2CAAuD;AAEvD;;;;GAIG;AACH,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC;IAC9D,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAA;AACzD,CAAC;AAED,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;IACtB,MAAM,GAAG,GAAG,MAAM,IAAA,uBAAiB,EACjC,aAAa,EACb;QACE,IAAI,EAAE;YACJ,WAAW,EAAE,+CAA+C;YAC5D,SAAS,EAAE,EAAE;SACd;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,sCAAsC;YACnD,SAAS,EAAE;gBACT,WAAW,EAAE,IAAA,yBAAmB,EAAC;oBAC/B,WAAW,EAAE,gCAAgC;oBAC7C,YAAY,EAAE,EAAE;iBACjB,CAAC;gBACF,QAAQ,EAAE,IAAA,yBAAmB,EAAC;oBAC5B,WAAW,EAAE,kCAAkC;oBAC/C,YAAY,EAAE,EAAE;iBACjB,CAAC;gBACF,OAAO,EAAE,IAAA,yBAAmB,EAAC;oBAC3B,WAAW,EAAE,8BAA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AI,EAAE;KACH,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;IACX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IAChB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC,CAAC;KACD,IAAI,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC;KACd,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA"}
|
|
@@ -10,8 +10,8 @@ let packageCache = undefined;
|
|
|
10
10
|
*/
|
|
11
11
|
async function getPackageData() {
|
|
12
12
|
if (!packageCache) {
|
|
13
|
-
const
|
|
14
|
-
packageCache = JSON.parse(
|
|
13
|
+
const pkgData = await (0, readPackageFile_js_1.getPackageFileReader)().readFile(['package.json']);
|
|
14
|
+
packageCache = JSON.parse(pkgData);
|
|
15
15
|
}
|
|
16
16
|
return packageCache;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../../../src/config/packageVersion.ts"],"names":[],"mappings":";;AAwBA,8CAGC;AA3BD,
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../../../src/config/packageVersion.ts"],"names":[],"mappings":";;AAwBA,8CAGC;AA3BD,oEAAkE;AAMlE,IAAI,YAAY,GAA4B,SAAS,CAAA;AAErD;;;;GAIG;AACH,KAAK,UAAU,cAAc;IAC3B,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,OAAO,GAAG,MAAM,IAAA,yCAAoB,GAAE,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,CAAC,CAAA;QACvE,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACpC,CAAC;IACD,OAAO,YAAa,CAAA;AACtB,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,iBAAiB;IACrC,MAAM,IAAI,GAAG,MAAM,cAAc,EAAE,CAAA;IACnC,OAAO,IAAI,CAAC,OAAO,CAAA;AACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readPackageFile.d.ts","sourceRoot":"","sources":["../../../src/utils/readPackageFile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"readPackageFile.d.ts","sourceRoot":"","sources":["../../../src/utils/readPackageFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAS/E,wBAAgB,oBAAoB,IAAI,iBAAiB,CAKxD"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getPackageFileReader = getPackageFileReader;
|
|
4
4
|
const cli_1 = require("@cloud-copilot/cli");
|
|
5
5
|
let levels = 3;
|
|
6
6
|
if (__filename.includes('src')) {
|
|
7
7
|
levels = 2;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let fileReader = undefined;
|
|
10
|
+
function getPackageFileReader() {
|
|
11
|
+
if (!fileReader) {
|
|
12
|
+
fileReader = (0, cli_1.createPackageFileReader)(__filename, levels);
|
|
13
|
+
}
|
|
14
|
+
return fileReader;
|
|
12
15
|
}
|
|
13
16
|
//# sourceMappingURL=readPackageFile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readPackageFile.js","sourceRoot":"","sources":["../../../src/utils/readPackageFile.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"readPackageFile.js","sourceRoot":"","sources":["../../../src/utils/readPackageFile.ts"],"names":[],"mappings":";;AASA,oDAKC;AAdD,4CAA+E;AAE/E,IAAI,MAAM,GAAG,CAAC,CAAA;AACd,IAAI,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;IAC/B,MAAM,GAAG,CAAC,CAAA;AACZ,CAAC;AAED,IAAI,UAAU,GAAkC,SAAS,CAAA;AAEzD,SAAgB,oBAAoB;IAClC,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,UAAU,GAAG,IAAA,6BAAuB,EAAC,UAAU,EAAE,MAAM,CAAC,CAAA;IAC1D,CAAC;IACD,OAAO,UAAU,CAAA;AACnB,CAAC"}
|
package/dist/esm/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { parseCliArguments } from '@cloud-copilot/cli';
|
|
2
|
+
import { booleanArgument, enumArgument, numberArgument, parseCliArguments, stringArgument, stringArrayArgument } from '@cloud-copilot/cli';
|
|
3
3
|
import { conductLogAnalysis } from './analysis/analyze.js';
|
|
4
4
|
import { loadConfigFiles } from './config/configFile.js';
|
|
5
5
|
import { createDefaultConfiguration } from './config/createConfigFile.js';
|
|
@@ -17,109 +17,93 @@ if (process.env.AWS_DEFAULT_REGION && !process.env.AWS_REGION) {
|
|
|
17
17
|
process.env.AWS_REGION = process.env.AWS_DEFAULT_REGION;
|
|
18
18
|
}
|
|
19
19
|
const main = async () => {
|
|
20
|
-
const
|
|
21
|
-
const cli = parseCliArguments('iam-collect', {
|
|
20
|
+
const cli = await parseCliArguments('iam-collect', {
|
|
22
21
|
init: {
|
|
23
22
|
description: 'Initialize the iam-collect configuration file',
|
|
24
|
-
|
|
23
|
+
arguments: {}
|
|
25
24
|
},
|
|
26
25
|
download: {
|
|
27
26
|
description: 'Download IAM data and update indexes',
|
|
28
|
-
|
|
29
|
-
configFiles: {
|
|
30
|
-
type: 'string',
|
|
27
|
+
arguments: {
|
|
28
|
+
configFiles: stringArrayArgument({
|
|
31
29
|
description: 'The configuration files to use',
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
accounts: {
|
|
35
|
-
type: 'string',
|
|
30
|
+
defaultValue: []
|
|
31
|
+
}),
|
|
32
|
+
accounts: stringArrayArgument({
|
|
36
33
|
description: 'The account IDs to download from',
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
regions: {
|
|
40
|
-
type: 'string',
|
|
34
|
+
defaultValue: []
|
|
35
|
+
}),
|
|
36
|
+
regions: stringArrayArgument({
|
|
41
37
|
description: 'The regions to download from',
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
services: {
|
|
45
|
-
type: 'string',
|
|
38
|
+
defaultValue: []
|
|
39
|
+
}),
|
|
40
|
+
services: stringArrayArgument({
|
|
46
41
|
description: 'The services to download',
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
concurrency: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
noIndex: {
|
|
55
|
-
type: 'boolean',
|
|
42
|
+
defaultValue: []
|
|
43
|
+
}),
|
|
44
|
+
concurrency: numberArgument({
|
|
45
|
+
description: 'The maximum number of concurrent downloads to allow. Defaults based on your system CPUs'
|
|
46
|
+
}),
|
|
47
|
+
noIndex: booleanArgument({
|
|
56
48
|
description: 'Skip refreshing the indexes after downloading',
|
|
57
49
|
character: 'n'
|
|
58
|
-
},
|
|
59
|
-
writeOnly: {
|
|
60
|
-
type: 'boolean',
|
|
50
|
+
}),
|
|
51
|
+
writeOnly: booleanArgument({
|
|
61
52
|
description: 'Only write data for discovered resources and ignore any existing data. May improve performance if you know you have no existing data',
|
|
62
53
|
character: 'w'
|
|
63
|
-
}
|
|
54
|
+
})
|
|
64
55
|
}
|
|
65
56
|
},
|
|
66
57
|
index: {
|
|
67
58
|
description: 'Refresh the IAM data indexes',
|
|
68
|
-
|
|
69
|
-
configFiles: {
|
|
70
|
-
type: 'string',
|
|
59
|
+
arguments: {
|
|
60
|
+
configFiles: stringArrayArgument({
|
|
71
61
|
description: 'The configuration files to use',
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
partition: {
|
|
75
|
-
type: 'string',
|
|
62
|
+
defaultValue: []
|
|
63
|
+
}),
|
|
64
|
+
partition: stringArgument({
|
|
76
65
|
description: 'The partition to refresh index data for. Defaults to aws',
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
accounts: {
|
|
80
|
-
type: 'string',
|
|
66
|
+
defaultValue: 'aws'
|
|
67
|
+
}),
|
|
68
|
+
accounts: stringArrayArgument({
|
|
81
69
|
description: 'The account IDs to refresh index data for',
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
regions: {
|
|
85
|
-
type: 'string',
|
|
70
|
+
defaultValue: []
|
|
71
|
+
}),
|
|
72
|
+
regions: stringArrayArgument({
|
|
86
73
|
description: 'The regions to refresh index data for',
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
services: {
|
|
90
|
-
type: 'string',
|
|
74
|
+
defaultValue: []
|
|
75
|
+
}),
|
|
76
|
+
services: stringArrayArgument({
|
|
91
77
|
description: 'The services to refresh index data for',
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
concurrency: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
values: 'single'
|
|
98
|
-
}
|
|
78
|
+
defaultValue: []
|
|
79
|
+
}),
|
|
80
|
+
concurrency: numberArgument({
|
|
81
|
+
description: 'The maximum number of concurrent indexers to run. Defaults based on your system CPUs'
|
|
82
|
+
})
|
|
99
83
|
}
|
|
100
84
|
},
|
|
101
85
|
'analyze-logs': {
|
|
102
86
|
description: 'Analyze iam-collect trace logs and summarize job execution times',
|
|
103
|
-
|
|
104
|
-
logFile: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
values: 'single'
|
|
108
|
-
}
|
|
87
|
+
arguments: {
|
|
88
|
+
logFile: stringArgument({
|
|
89
|
+
description: 'The path to the log file to analyze'
|
|
90
|
+
})
|
|
109
91
|
}
|
|
110
92
|
}
|
|
111
93
|
}, {
|
|
112
|
-
log: {
|
|
113
|
-
type: 'enum',
|
|
94
|
+
log: enumArgument({
|
|
114
95
|
description: 'The log level to use',
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
96
|
+
validValues: [...LogLevels] // Convert readonly to mutable array
|
|
97
|
+
})
|
|
118
98
|
}, {
|
|
119
99
|
envPrefix: 'IAM_COLLECT',
|
|
120
100
|
showHelpIfNoArgs: true,
|
|
121
101
|
requireSubcommand: true,
|
|
122
|
-
|
|
102
|
+
expectOperands: false,
|
|
103
|
+
version: {
|
|
104
|
+
currentVersion: iamCollectVersion,
|
|
105
|
+
checkForUpdates: '@cloud-copilot/iam-collect'
|
|
106
|
+
}
|
|
123
107
|
});
|
|
124
108
|
if (cli.args.log) {
|
|
125
109
|
setLogLevel(cli.args.log);
|
|
@@ -134,13 +118,13 @@ const main = async () => {
|
|
|
134
118
|
}
|
|
135
119
|
else if (cli.subcommand === 'download') {
|
|
136
120
|
const defaultConfig = './iam-collect.jsonc';
|
|
137
|
-
const configFiles = cli.args.configFiles
|
|
121
|
+
const configFiles = cli.args.configFiles.length > 0 ? cli.args.configFiles : [defaultConfig];
|
|
138
122
|
const configs = loadConfigFiles(configFiles);
|
|
139
123
|
await downloadData(configs, cli.args.accounts, cli.args.regions, cli.args.services, cli.args.concurrency, cli.args.noIndex, cli.args.writeOnly);
|
|
140
124
|
}
|
|
141
125
|
else if (cli.subcommand === 'index') {
|
|
142
126
|
const defaultConfig = './iam-collect.jsonc';
|
|
143
|
-
const configFiles = cli.args.configFiles
|
|
127
|
+
const configFiles = cli.args.configFiles.length > 0 ? cli.args.configFiles : [defaultConfig];
|
|
144
128
|
const configs = loadConfigFiles(configFiles);
|
|
145
129
|
await index(configs, cli.args.partition || 'aws', cli.args.accounts, cli.args.regions, cli.args.services, cli.args.concurrency);
|
|
146
130
|
}
|
package/dist/esm/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EACL,eAAe,EACf,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,cAAc,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,CAAC,CAAC;KACd,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPackageFileReader } from '../utils/readPackageFile.js';
|
|
2
2
|
let packageCache = undefined;
|
|
3
3
|
/**
|
|
4
4
|
* Get the package data version
|
|
@@ -7,8 +7,8 @@ let packageCache = undefined;
|
|
|
7
7
|
*/
|
|
8
8
|
async function getPackageData() {
|
|
9
9
|
if (!packageCache) {
|
|
10
|
-
const
|
|
11
|
-
packageCache = JSON.parse(
|
|
10
|
+
const pkgData = await getPackageFileReader().readFile(['package.json']);
|
|
11
|
+
packageCache = JSON.parse(pkgData);
|
|
12
12
|
}
|
|
13
13
|
return packageCache;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../../../src/config/packageVersion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../../../src/config/packageVersion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAMlE,IAAI,YAAY,GAA4B,SAAS,CAAA;AAErD;;;;GAIG;AACH,KAAK,UAAU,cAAc;IAC3B,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,OAAO,GAAG,MAAM,oBAAoB,EAAE,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,CAAC,CAAA;QACvE,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACpC,CAAC;IACD,OAAO,YAAa,CAAA;AACtB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,MAAM,IAAI,GAAG,MAAM,cAAc,EAAE,CAAA;IACnC,OAAO,IAAI,CAAC,OAAO,CAAA;AACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readPackageFile.d.ts","sourceRoot":"","sources":["../../../src/utils/readPackageFile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"readPackageFile.d.ts","sourceRoot":"","sources":["../../../src/utils/readPackageFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAS/E,wBAAgB,oBAAoB,IAAI,iBAAiB,CAKxD"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createPackageFileReader } from '@cloud-copilot/cli';
|
|
2
2
|
let levels = 3;
|
|
3
3
|
//@ts-ignore
|
|
4
4
|
if (import.meta.url.includes('src')) {
|
|
5
5
|
levels = 2;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
let fileReader = undefined;
|
|
8
|
+
export function getPackageFileReader() {
|
|
9
|
+
if (!fileReader) {
|
|
10
|
+
//@ts-ignore
|
|
11
|
+
fileReader = createPackageFileReader(import.meta.url, levels);
|
|
12
|
+
}
|
|
13
|
+
return fileReader;
|
|
11
14
|
}
|
|
12
15
|
//# sourceMappingURL=readPackageFileEsm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readPackageFileEsm.js","sourceRoot":"","sources":["../../../src/utils/readPackageFileEsm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"readPackageFileEsm.js","sourceRoot":"","sources":["../../../src/utils/readPackageFileEsm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAA0B,MAAM,oBAAoB,CAAA;AAEpF,IAAI,MAAM,GAAG,CAAC,CAAA;AACd,YAAY;AACZ,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;IACpC,MAAM,GAAG,CAAC,CAAA;AACZ,CAAC;AAED,IAAI,UAAU,GAAkC,SAAS,CAAA;AAEzD,MAAM,UAAU,oBAAoB;IAClC,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,YAAY;QACZ,UAAU,GAAG,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;IAC/D,CAAC;IACD,OAAO,UAAU,CAAA;AACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readPackageFileEsm.d.ts","sourceRoot":"","sources":["../../../src/utils/readPackageFileEsm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"readPackageFileEsm.d.ts","sourceRoot":"","sources":["../../../src/utils/readPackageFileEsm.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAUpF,wBAAgB,oBAAoB,IAAI,iBAAiB,CAMxD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-copilot/iam-collect",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.116",
|
|
4
4
|
"description": "Collect IAM information from AWS Accounts",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"@aws-sdk/client-sts": "^3.772.0",
|
|
137
137
|
"@aws-sdk/credential-providers": "^3.772.0",
|
|
138
138
|
"@aws-sdk/types": "^3.734.0",
|
|
139
|
-
"@cloud-copilot/cli": "^0.
|
|
139
|
+
"@cloud-copilot/cli": "^0.2.5",
|
|
140
140
|
"@cloud-copilot/iam-policy": "^0.1.24",
|
|
141
141
|
"@cloud-copilot/iam-utils": "^0.1.2",
|
|
142
142
|
"@cloud-copilot/job": "^0.1.5",
|