Open mims92 opened 3 years ago
Re-labeling it to a feature request. SAM creates one integration for each event even it is using the same HTTP API. We can de-duplicate such integration creations
Looks like this was suppose to be on SAM Spec rather than the CLI. Moving to the correct repo.
Description:
I want to use the same Lambda for 2 routes:
I created 2 events in the same
Serverless::Function
definition. The result is that it created 2 separate integrations with the same Lambda function.Steps to reproduce:
Observed result:
2 different integrations are created.
Expected result:
1 integration is created and attached to the two routes.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.21.1