Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local execution for Lambdas #115

Closed
72636c opened this issue Jun 24, 2020 · 0 comments · Fixed by #301
Closed

Local execution for Lambdas #115

72636c opened this issue Jun 24, 2020 · 0 comments · Fixed by #301

Comments

@72636c
Copy link
Member

72636c commented Jun 24, 2020

The lambda-sqs-worker template does not come with a skuba start script. This is because we haven't decided on a local execution experience for Lambdas. A few options in my current order of preference:

  1. Serve the handler over HTTP so you can POST the input events. I consider this slightly better than option 2 because it's less boilerplate and lets you test container reuse scenarios.

  2. Just require the entry point. This will likely mean that users will need to provide their own local wrapper around the Lambda handler, e.g.

    // localHandler.ts
    
    import { handler } from './app'
    
    handler({ event: 'my test event', context: 'my test context' })
  3. A local Lambda runtime, e.g. proxying serverless invoke local. I'm not super keen on replicating the runtime locally or tying skuba to Serverless but could be convinced otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant