Hivemind
For creating distributed jobs using AWS Lambda functions.
Install:
npm install lambda-hivemind
Use:
const Hivemind = const hivemind = func: name: 'buzzbuzz' handler: 'buzzbuzz.sting' // '<name of file>.<exported func name>' role: '<arn of IAM role to run function under>' accessKeyId: '' // AWS credentials. Optional. secretAccessKey: '' // AWS credentials. Optional. awsRegion: 'us-east-1' data: 'bee 1' 'bee 2' 'bee 3' ... chunkSize: 10 // Size of chunks to split data into // Oh no, we haven't published a function of this name yet! // List all files you want published as your functionhivemind hivemind hivemind hivemind hivemind
AWS credentials in constructor are only optional if you have the AWS CLI configured or have your credentials as environment variables!
Full example can be found under test/