-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Getting ValueError: Function name is required
when running API Gateway from Terraform
#7236
Comments
ValueError: Function name is required
ValueError: Function name is required
when running API Gateway from Terraform
BTW the endpoint im calling is using an AWS Integration (for example, to start execution of a State machine). I guess this might be why, as it's trying to invoke a lambda function for this integration. Is there any way I can mock it? |
Can you provide a sample project for us to reproduce this issue? The bounds of what we support with |
hey @lucashuy thanks for your reply. I ended up changing my integration type to Lambda proxy integration for more flexibility and endpoint customisation. |
Our support for Lambda invocations locally is limited to directly invoking the Lambda (through Unfortunately we don't support the local invocations of Lambda through other integration means with API Gateway. The AWS Step Functions team created a tool to use together with SAM CLI to help test Step Functions locally and requires a little bit of setup to use. This can be an alternative to using SAM CLI as an "all-in-one" solution. I'm going to leave this issue open for now as the only item for our team to take from this issue is that we probably should fix that method that returns a |
Patch is released in v1.124.0. Closing |
Hi everyone. I'm running my API Gateway locally with:
sam local start-api --hook-name terraform --disable-authorizer
The API Gateway starts without issues ,but when hitting any endpoint I get the following:
I ran the above with and without the authoriser, but I've also tried running the authoriser individually with:
sam local invoke ModuleIdeApiAwsLambdaFunctionAuthorizerFunction836CD508 --hook-name terraform --skip-prepare-infra --event authoriser-event.json
and it works well when running the Lambda function alone. Any ideas what could be wrong?
Thank you!
The text was updated successfully, but these errors were encountered: