Open
Description
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())