-
Notifications
You must be signed in to change notification settings - Fork 0
/
local-run.js
26 lines (22 loc) · 1.01 KB
/
local-run.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require('dotenv').config();
const { handler } = require('./src/index');
console.log(' ____ _ ');
console.log(' / __ \\__ ______ ____ ___ ____ ____ ___ ___ _____ (_)___ ');
console.log(' / / / / / / / __ \\/ __ `/ _ \\/ __ \\/ __ \\/ _ \\/ _ \\/ ___/ / / __ \\ ');
console.log(' / /_/ / /_/ / / / / /_/ / __/ /_/ / / / / __/ __/ / / / /_/ /');
console.log('/_____/\\__,_/_/ /_/\\__, /\\___/\\____/_/ /_/\\___/\\___/_/ (_)/_/\\____/ ');
console.log(' /____/ Scan to Mongo Local Utility');
const doProcess = async () => {
console.log('starting.');
// await handler({ snapshotId: '630c080dfe4dd7359414078e' });
await handler();
// await handler(undefined, {
// functionName: 'lmda-rlm-scanner',
// functionVersion: '1',
// invokedFunctionArn: 'fd',
// awsRequestId: 'dsf'
// });
console.log('success.');
process.exit(0);
};
doProcess();