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
34
votes
5 answers

Api gateway get output results from step function?

I followed tutorial on creating and invoking step functions I'm getting output in my GET request of api as { "executionArn": "arn:aws:states:ap-northeast-1:123456789012:execution:HelloWorld:MyExecution", "startDate": 1.486772644911E9 } But,…
34
votes
2 answers

How do I pass arguments to AWS Lambda functions using GET requests?

Say I want to pass val1 and val2 in the URL string when making a GET request from my Api gateway endpoint to my Lambda function: https://xyz.execute-api.amazonaws.com/prod/test?val1=5&val2=10 And I have a simple function that sums the two inputs,…
capitalistcuttle
  • 1,709
  • 2
  • 20
  • 28
33
votes
2 answers

Request payload limit with AWS API Gateway

What is the request-payload limit with AWS API-Gateway? I need to send a JSON payload with base64 encoded files and some other parameters to API Gateway, that will then pass on the payload to AWS Lambda. I could not find AWS documentation…
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
33
votes
5 answers

Configure CORS response headers on AWS Lambda?

I'm trying to create a new service using AWS API Gateway, but I found out the browser automatically calls OPTIONS method in order to obtain CORS information. The problem is that AWS API Gateway does not offer a native way to configure CORS…
32
votes
5 answers

AWS Lambda to run in background even after sending response to API Gateway

I have searched all through the net but didn't find a solution of how to make this functionality get succeeded. Require help. My requirement is: I want a that if I trigger an aws lambda function written in node.js and uses an aws-serverless-express…
learner
  • 503
  • 2
  • 8
  • 15
31
votes
3 answers

Serverless Configuration warning at 'functions.app.events[0]': unsupported function event

I'm trying to deploy an AWS API with serverless.com When I do: sls --stage=dev --aws-profile=myprofile deploy --force I get the following warning: Configuration warning at 'functions.app.events[0]': unsupported function event My serverless.yml…
Greg Pagendam-Turner
  • 2,356
  • 5
  • 32
  • 49
31
votes
10 answers

XMLHttpRequest error in flutter web [Enabling CORS AWS API gateway]

Note: It turns out that this had nothing to do with flutter and everything to do with the fact that I had set the API gateway to a Lambda Proxy I am trying to hit an API endpoint from a Flutter web application, every time it errors out and gives me…
DrkStr
  • 1,752
  • 5
  • 38
  • 90
31
votes
2 answers

How can I find the arn of an api gateway stage?

I am trying to use awscli to add tags to my api gateway stage https://docs.aws.amazon.com/cli/latest/reference/apigateway/tag-resource.html I am required to supply the --resource-arn for the stage, however I am unable to ascertain this value. I have…
user3559247
  • 1,117
  • 1
  • 11
  • 21
30
votes
3 answers

How do I debug AWS Api Gateway & Lambda's "AWS/ApiGateway 5XXError"

I have an API Gateway resource that runs a lambda function. I'm calling the API Gateway resource using the AWS Generated SDK from my Api Gateway. Here's the portion of the stacktrace from my client that seems relevant: Caused by:…
30
votes
9 answers

Terraform not deploying api gateway stage

I have been trying to create an API Gateway endpoint using terraform. Everything seems to be working except the last part of deploying a stage. After I run terraform apply I go into the console and I find that the deployment has not happened. I…
sethu
  • 8,181
  • 7
  • 39
  • 65
30
votes
7 answers

Making calls to AWS api gateway endpoint with api key using rest client POSTMAN

We are developing a mobile/web app for which we are using aws lambda and dynamo db as our backend.The standalone lambda functions are working perfectly. The calls are being routed via api gateway. We are using api keys to leverage the security…
Subham Tripathi
  • 2,683
  • 6
  • 41
  • 70
29
votes
5 answers

API Gateway throttling -- burst limit vs rate limit

I can't find any documentation on these two terms. I pored over AWS docs and Google results. What is the difference between burst limit and rate limit? When I go to change the settings for default route throttling on my API, there are just two…
Taylor Vance
  • 706
  • 1
  • 8
  • 22
29
votes
2 answers

How to protect AWS API gateway endpoint from DDos attack?

Recently I have been working with AWS API gateway where I created an API and protected it with API key and Cognito (OAuth). One day I found that my API has been accessed 10K times which failed because of attacker didn't had the access to it. My…
Lalit Kumar
  • 423
  • 1
  • 4
  • 12
29
votes
6 answers

AWS Lambda fails to return PDF file

I have created a lambda function using serverless. This function is fired via API Gateway on a GET request and should return a pdf file from a buffer. I'm using html-pdf to create the buffer and trying to return the pdf file with the following…
29
votes
4 answers

How do you pass Authorization header through API Gateway to HTTP endpoint?

I have an API behind an AWS API Gateway that needs to use the Authorization header for processing. I have unfortunately been unable to pass this to the backend for processing. I have tried creating the Authorization HTTP Request Header in my Method…
Nick
  • 458
  • 1
  • 4
  • 11