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

supoprt express lambas in amplify gen 2 #2434

Open
maxbueckert opened this issue Jan 20, 2025 · 1 comment
Open

supoprt express lambas in amplify gen 2 #2434

maxbueckert opened this issue Jan 20, 2025 · 1 comment
Labels
feature-request New feature or request function Issue pertaining to Amplify Function needs-product-input Needs non-technical requirements or direction to proceed

Comments

@maxbueckert
Copy link

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())
@maxbueckert maxbueckert added the pending-triage Incoming issues that need categorization label Jan 20, 2025
@ykethan
Copy link
Member

ykethan commented Jan 21, 2025

Hey, thank you for reaching out. Marking this as feature request.

@ykethan ykethan added feature-request New feature or request needs-product-input Needs non-technical requirements or direction to proceed function Issue pertaining to Amplify Function and removed pending-triage Incoming issues that need categorization labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request function Issue pertaining to Amplify Function needs-product-input Needs non-technical requirements or direction to proceed
Projects
None yet
Development

No branches or pull requests

2 participants