Questions tagged [aws-api-gateway]

Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale.

Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale.

With a few clicks in the AWS Management Console, you can create an API that acts as a “front door” for applications to access data, business logic, or functionality from your back-end services, such as workloads running on Amazon Elastic Compute Cloud (Amazon EC2), code running on AWS Lambda, or any Web application.

Amazon API Gateway handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, authorization and access control, monitoring, and API version management. Amazon API Gateway has no minimum fees or startup costs, and you pay only for the API calls you receive and the amount of data transferred out.

Amazon API Gateway product page

What is Amazon API Gateway?

7665 questions
3
votes
1 answer

AWS API Gateway "x-amzn-requestid" - Can it be captured inside .net core

Is there a way to capture AWS API Gateway "x-amzn-requestid" inside .Net Core API Exception filter method?
3
votes
3 answers

private and public ip using AWS api gateway + lambda + Nodejs

I am trying to get the users private IP and public IP in an AWS environment. Based on this answer (https://stackoverflow.com/a/46021715/4283738) there should be a header X-Forwarded-For , separated ips and also from forum…
joyBlanks
  • 6,419
  • 1
  • 22
  • 47
3
votes
1 answer

How do you call the AWS Lamda from AWS API Gateway in Scala?

I have created an instance of AWS API Gateway for AWS Lambda. How can I handle the HTTP methods in the Lamda function? My sample code is: class ApiGatewayHandler extends RequestHandler[Request, ApiGatewayResponse] { def handleRequest(input:…
newbie
  • 456
  • 1
  • 6
  • 17
3
votes
0 answers

How to duplicate all requests to AWS Lambda function to second request handling function?

I've set up a function in AWS Lambda that acts as a request handler, receiving HTTP requests via AWS API Gateway. I would like to keep this 'path' completely unmodified, but also have a second Lambda function to receive (duplicates of) all these…
Jochem Schulenklopper
  • 6,452
  • 4
  • 44
  • 62
3
votes
0 answers

SerializationException when making Gettem request to DynamoDB via API Gateway

I'm making a GetItem call to a DynamoDB via API Gateway integration. My request mapping is: { "TableName": "connected-content-dynamodb", "Key": { { "id" : {"S" : "$input.params('entity-id')"} } } } Response template…
sumek
  • 26,495
  • 13
  • 56
  • 75
3
votes
1 answer

API Gateway stream large size content in response

Is there any way I can stream content in API response which is backed by AWS API gateway. My content can be very large size and i want to stream it to the requestor. At present i see there is a limit of 10Mb payload size on API Gateway. I also…
iAviator
  • 1,310
  • 13
  • 31
3
votes
1 answer

How to rate limit per user in API Gateway?

I'm running a business API on AWS, through API Gateway and Lambda. Currently, I handle rate limiting with the built in usage plans and api keys. Each account tier (think basic, medium, premium) is associated to a usage plan, to which each customer's…
3
votes
1 answer

Difference in request body in aws api gateway test and curl

I'm trying to add a POST HTTP method to my AWS API Gateway. I'm using SAM framework with Python. I find that there is a difference in the "body" of the response when it is generated from my desktop (curl or postman) and the AWS API Gateway…
3
votes
1 answer

How to map an array or object from Api Gateway integration request mapping template?

I have POST method in API Gateway that accepts the data passed from body params. From the API Gateway, I managed to get the userName and uuid, but I'm having an error getting the traveledCities. How can I map an array or an object passed from body…
AllenC
  • 2,754
  • 1
  • 41
  • 74
3
votes
1 answer

Is API Gateway Default Method Throttling per all requests or per client?

For a stage belonging to an API in AWS API Gateway I have the option to limit Default Method Throttling. Does this limit the total number of requests per second, or the number of requests from a particular client per second?
Jansky
  • 1,455
  • 1
  • 17
  • 33
3
votes
1 answer

API Gateway Mapping Template optional field

I've been working with Mapping Templates on AWS API Gateway, in particular for DynamoDB integration. And I found very inconvenient to check against optional fields. For example I have a JSON payload like this: { "optional_field": "abcd" } now…
3
votes
1 answer

AWS Serverless Template Configurations with Custom Authorization and Rest API

I am a newbie to AWS Lambda Services. I have created a serverless lambda method and successfully deployed it on the AWS cloud. Next I created a Lambda custom Authorizer and configured the API Gateway for the Lambda method and custom Authorizer.…
3
votes
0 answers

SAM LOCAL - Cognito username in event missing - how to hook this up?

I am using SAM LOCAL and start-api to test my lambda functions using postman. I use Cognito for user authentication and pass the cognito token to the API Gateway. In production, it works fine. I need the username from Cognito (requestContext:…
sgiot
  • 31
  • 2
3
votes
0 answers

Connect AWS API Gateway to an internal NLB backed by ECS Microservice

I seem to be stuck with my architecture for ECS Microservices. Current State : ECS cluster with 2 EC2 instances in private subnets exposing a dockerized node express endpoint on port 3000 (1 service, 2 running tasks) NAT gateway route out from…
3
votes
0 answers

How can I make an IP/VPC whitelist for an API in API Gateway?

We have an API in API Gateway connected to a lambda function. The API has three stages (Dev/Stage/Prod), an API key (required) and a usage plan (connected to all three stages). We're trying to restrict traffic to this API so that Stage/Prod is only…
BunnyRabbit
  • 347
  • 1
  • 2
  • 12