Skip to content

Conversation

@Electroid
Copy link
Contributor

@Electroid Electroid commented Feb 7, 2023

Closes #352

@lukeshay
Copy link

I am very interested in this! I made a basic runtime that mimics the functionality of the node runtime but I like the consistency of using the fetch API.

Does this work with non-HTTP events? (e.g. SQS, AppSync, Cognito)

@Electroid
Copy link
Contributor Author

I am very interested in this! I made a basic runtime that mimics the functionality of the node runtime but I like the consistency of using the fetch API.

Does this work with non-HTTP events? (e.g. SQS, AppSync, Cognito)

Yes, for non-HTTP events the payload will be in the Request body.

export default {
  async fetch(request: Request) {
    const event = await request.json();
  }
}

@Electroid Electroid merged commit ee60a5c into main Feb 22, 2023
@Electroid Electroid deleted the feat/aws-lambda branch February 22, 2023 18:34
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 this pull request may close these issues.

Support AWS Lambda layer running bun

7 participants