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

Only keep body from API Gateway to Lambda

Why would I want to only keep the body content? One of the lambdas (let's call it X) in our project is being invoked by another lambda, and this is the only organic way we'd like X to be executed. Input passed to X through its lambda invoker: { …
user2517028
  • 784
  • 1
  • 11
  • 25
3
votes
1 answer

Claudia.js Auto generated lambda function not displaying on AWS console

So I have created a restAPI backend with express.js and have used claudia.js to upload my endpoints to lambda functions and everything went smoothly. The end points work as expected and return the correct information. My only issue is that when I go…
3
votes
1 answer

AWS Api Gateway - Validate incoming XML payload

I am trying to validate an incoming XML payload via API gateway. To be specific, I actually don't even care about the schema, I just want to make sure that the body is not empty (and maybe that it is valid XML if I can get that functionality). I see…
MrName
  • 2,363
  • 17
  • 31
3
votes
0 answers

Couldn't make new request verification for Slack API

I'm trying the new request verification process for Slack API on AWS Lambda but I can't produce a valid signature from a request. The example showed in https://api.slack.com/docs/verifying-requests-from-slack is for a slash command but I'm using…
kskkskksk
  • 91
  • 2
  • 6
3
votes
1 answer

Amazon API Gateway 403 Forbidden

Recently, I used the Amazon API Gateway .I created an api ,but the API failed all the time. At the beginning,I didn't add request headers.The result that API responsed is as follows: HTTP/1.1 403 Forbidden {"message":null, "type":…
jenny
  • 31
  • 1
  • 4
3
votes
1 answer

AWS API authorizer include body

Is there a way to validate request in API Gateway based on its body? I need to calculate SHA1 hash of the body to validate the sender - Facebook messenger events... Is there a workaround for it?
Jan Sila
  • 1,554
  • 3
  • 17
  • 36
3
votes
1 answer

Invalid model schema specified for swagger

I tried to deploy API on AWS but it not allowed to add a model in the JSON file and shows error : It working without the use of model so maybe it not take model this way so please suggest me how to use a model in API JSON on AWS! Error is : Your…
dbshah
  • 33
  • 1
  • 5
3
votes
1 answer

AWS Lambda + API-gateway return 502 error when the lambda is throttled

Synchronous invocation: If the function is invoked synchronously and is throttled, Lambda returns a 429 error and the invoking service is responsible for retries. The ThrottledReason error code explains whether you ran into a function level…
SangminKim
  • 8,358
  • 14
  • 69
  • 125
3
votes
0 answers

Is there a way to deploy multiple api gateways sharing same lambdas using serverless

My use case is as follows, I have built a rest api written in nodejs with serverless and when deployed will create lambdas and an api gateway that gives url which works fine. However, I will have multiple clients who would want to use this…
3
votes
3 answers

Automating Deployment of AWS API Gateway Stage

How would I go about automating the deployment of an AWS API Gateway via a Python script using Boto3? For example, if I have created a stage named "V1" in the AWS Console for API Gateway, how would I write a script to deploy that stage ("V1")? The…
3
votes
0 answers

How can I exclude certain operations/HTTP Verbs with Swagger Codegen?

I'm using Swagger w/ AWS API Gateway. In order to fully support CORS, I have several OPTIONS methods in my swagger file; they exist only to tell API Gateway to return CORS headers so that preflight requests from my Angular app succeed. However, when…
user1543276
  • 436
  • 5
  • 11
3
votes
0 answers

AWS API Gateway - Custom domain name yields

I have an API site in AWS API Gateway. The SSL certificate is managed by ACM, and it has a wildcard that matches any subdomain (eg: *.mydomain.net). I could access my API until I renamed the subdomain. Now, hitting my API in Chrome yields…
3
votes
2 answers

Returning a html page from a AWS Python lambda function

I currently have a Python lambda function that is returning a JSON object. However rather then getting a white screen with JSON data I was wondering if there is a way to return a html webpage that returns instead of JSON? Currently the return data…
jelidens
  • 221
  • 1
  • 4
  • 14
3
votes
0 answers

Configure AWS API Gateway Client Certificate with Java TrustStore for validating incoming request

I am using Akka 2.4.x and trying to configure the truststore with Akka Http - so that I can validate incoming request to the server. My Stack is: 1. AWS API Gateway - Sending a Client certificate 2. AKKA HTTP using java truststore for…
3
votes
1 answer

How to store session in AWS lambda

I have a AWS Lambda function which need to talk to an external API to validate the user using bearer token pass in API request header. Now I want to store that token in session, so I don't want to call external API every time when user send request…
vibhav bhavsar
  • 187
  • 4
  • 16