Skip to content

supoprt express lambas in amplify gen 2 #2434

Open
@maxbueckert

Description

@maxbueckert

Environment information

- Amplify Gen 2

Describe the feature

Current Limitations:

  • No clear way to create an express-style Lambda in Gen 2
  • Can't properly handle Stripe webhooks without raw body access
  • Lambda is modifying the request body before it reaches our handler

Requested Solution:

  • Support for express-style Lambdas similar to Gen 1
  • OR documentation for handling raw request bodies in Gen 2
  • OR alternative approach for webhook signature verification

Use case

Use Case:

  • Need to create a Stripe webhook endpoint that can access raw request body
  • Stripe requires raw body access for webhook signature verification
  • In Gen 1, this was possible using express middleware (bodyParser.raw())

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or requestfunctionIssue pertaining to Amplify Functionneeds-product-inputNeeds non-technical requirements or direction to proceed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions