Questions tagged [aws-lambda-integration]

8 questions
3
votes
1 answer

Integrate AWS API Gateway methods with multiple Lambdas using Terraform

I have to integrate more than 50 Lambda functions with relevant api gateway method. So that I create a terraform map with Lambda function name and api gateway resource path as below. variable "lambdas" { description = "Map of Lambda function names…
1
vote
2 answers

AWS API Gateway caching only if no query parameters in path

I have an endpoint in API Gateway for path: /v1/services that returns all services in DynamoDB. It is possible also to add query parameter like: /v1/services?search={something} and in this case services will be filtered depending on search string. I…
0
votes
2 answers

Selection pattern matching in Localstack for Lambda integration with APi Gateway

I am using Localstack with API Gateway and Lambda Integration to test my APIs. You can find the repository here. The scripts I am using to build the emulated AWS environment are in this folder. I am trying to create multiple integration responses…
0
votes
0 answers

What's causing the error 'event.body was an object but content-type is not json' when using the serverless-framework with Lambda integration?

event.body was an object but content-type is not json "errorMessage": "event.body was an object but content-type is not json", "errorType": "Error", "stackTrace": [ "Error: event.body was an object but content-type is not json", …
0
votes
0 answers

Define an AWS SAM template file with Cognito users pool and authorizer

I need to define these and I'm not sure how I find out how to do it: - api gateway - Cognito user pool - Cognito user pool client - Cognito authorizer - lambda function (under the defined gateway) that uses the cognito authorizer Method and…
0
votes
0 answers

How to identify Lambda service exception from API gateway response?

I want able to identify errors related to the Lambda function service when using HTTP API gateway Lambda integration, not the exceptions related to my application running on using the Lambda function. An example of this is an error related to the…
0
votes
1 answer

API Gateway mapping template is not sending JWT auth claims to Lambda function

I am having trouble sending specific JWT authorization claims information derived from the Authorization header of a request to an API Gateway REST API endpoint (with non-proxy Lambda integration). The endpoint is secured with a Cognito User Pool…
Web User
  • 7,438
  • 14
  • 64
  • 92
0
votes
0 answers

AWS lambda no trigger displayed in the AWS Console

After I deployed my Open API in API gateway with lambda integration, I don't see the integration in Lambda itself. But I'm able to call the lambda from API gateway. Is this normal when integrating with Open API?