-
Notifications
You must be signed in to change notification settings - Fork 250
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
OpenApiGatewayToLambda - Use Existing Lambda Version #1250
Comments
Thanks - we'll take a look. |
What we're exploring is adding an optional parameter to ApiIntegration that will give you more control over the Lambda function:
|
Is your Lambda function defined in the same CDK stack as the openapigateway-lambda construct? We're running into an issue where the number for a newly created version is a token and can't be included in the spec (setting up the gateway from the spec is outside of the CDK and can't process tokens). We're starting to look at aliases as an alternative. |
Is it possible to specify a Version/Alias when using the OpenApiGatewayToLambda ApiIntegration with an existing Lambda object?
Use Case
I'm hoping to use OpenApiGatewayToLambda with a versioned Lambda, so I can use SnapStart.
Currently, I believe the construct gets the Function ARN, which is for $LATEST.
Proposed Solution
Possibly have a "existing_lambda_version_obj" or "existing_lambda_alias_obj" type as input for the ApiIntegration - then extract the ARN for that version/alias in the OpenAPI Helper class, when it works out the uriResolvedValue
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: