lambda-local
lambda-local copied to clipboard
Commandline tool to run Amazon Lambda function on local machines.
I'm using lambda-local for a local API gateway websocket server. I want to use clientContext to pass a local version of AWS.ApiGatewayManagementApi.postToConnection() to the lambda integration. I can do this...
Hi, I use lambda-local extensively, kudos for a super useful utility! With the availability of Node 14.x, AWS is [supporting ES Modules](https://aws.amazon.com/blogs/compute/using-node-js-es-modules-and-top-level-await-in-aws-lambda/) as lambda functions (package.json contains the `"type":"module"` directive)...
Trying to test my http lambda but seems like I have to send data with an `event` key? This data format isn't required by AWS afaik. https://github.com/ashiina/lambda-local/blob/4409022d20b81cb4ff445cf1f8fe3ea7a0736cd2/src/lambdalocal.ts#L94-L96
Hi! Thank you for your work on the package. There seems to be an issue with the `--wait-empty-event-loop` option that occurs on versions of Node.js 11 and greater. `lambda-local`, when...
aws-sdk sends requests as `'content-type': 'binary/octet-stream'`, which watch doesn't support. Would you accept a PR that uses raw-body to handle those requests? ```js await lambdaLocal.execute({ event: JSON.parse((await getRawBody(ctx.req)).toString()), lambdaPath: '...',...
prevent mixing of aws profiles Without this change, the regexp search for the next available token, but don't take profile boundaries (starting with [ ) into consideration. Assuming target profile...
My lambda uses encrypted environment variables which are encrypted using an KMS key. I decrypt the variable in my lambda using the kmsService in aws-sdk. Is there any way to...
Are there plans to expand this to run on a cadence like it would with cloudwatch events in prod? Basically call again with setTimeout rather than process.exit() here: https://github.com/ashiina/lambda-local/blob/develop/bin/lambda-local#L146
I use a stack where API Gateway invokes Lambda Function via `aws_proxy` and this works great. The docs of aws says `Requests will be proxied to Lambda with request details...
Possible solution to #226 Currently we cannot make a Get request if content-type header is not set to application/json (e.g. via browser request) This attempts to account for this by:...