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
6 answers

API Gateway: Empty request body?

I am trying to send a POST body to a AWS Lambda function using the iOS (Swift) SDK generated by AWS API GATEWAY, but the transmitted body is always empty. To do so I set up a model: { "$schema": "http://json-schema.org/draft-04/schema#", …
DrDirk
  • 1,937
  • 3
  • 25
  • 36
3
votes
1 answer

aws cognito && apiGateway returns status 401

I did cors configuration in response header of my api correctly. when I tested my api via postman with a validated token attached in header('Authorization'), it returned 200. i checked my frontend fetch code to request that api, it seems that…
3
votes
1 answer

Aws Api Gateway Integration Request How to append a property to request body?

I want to combine request body and querystring parameters before sending it to lambda. Let's say I have an entity in Lambda as below : Class Person { private String firstName; private String lastName; private String language; } And the json which…
Mesut Dogan
  • 572
  • 7
  • 16
3
votes
1 answer

AWS API Gateway Generated SDK does not contain client js file

I have created an API using the AWS Api Gateway Service, and am ready to use the javascript sdk in a simple webpage. However, the instructions for using the javascript SDK here show an import for a js file called apigClient. I can only assume this…
Nick
  • 31
  • 2
3
votes
2 answers

API Gateway does not have permission to assume the provided role DynamoDB

I'm trying to follow this tutorial, but when I try to test the API I've created, I get the following message: API Gateway does not have permission to assume the provided role The API request should be posting to a DynamoDB table I've created.…
Spencer Goff
  • 1,036
  • 3
  • 14
  • 23
3
votes
0 answers

Client app authorization for AWS API Gateway

I'm trying to figure out the best way to deploy an API in Amazon API Gateway. I'm getting totally confused about the appropriate authorization to use. The API will be used by our customers for their own custom developed apps. We don't need to…
user1751825
  • 4,029
  • 1
  • 28
  • 58
3
votes
1 answer

Resize S3 Images on the Fly with AWS Lambda, Amazon API Gateway - too many redirects for HTML IMG tag

I've followed this AWS image resizing blog post to resize images in my S3 bucket on the fly and return them when requested using the bucket’s static website hosting endpoint. It works fine for me when I type the URL into a web browser address bar. I…
3
votes
3 answers

Why does my Lambda function time out even though the API Gateway callback has already been called?

I have an AWS API Gateway method that proxies requests through to AWS Lambda. However, it errors after three seconds with the following in the logs: Endpoint response body before transformations: {"errorMessage":"2017-09-05T16:30:49.987Z…
Vincent
  • 4,876
  • 3
  • 44
  • 55
3
votes
3 answers

How to pass a querystring value from AWS API Gateway to a Lambda C# function

I have a C# method which I have successfully published as an AWS Lambda function. It looks like this: public class MyClass { public async Task Test(APIGatewayProxyRequest request, ILambdaContext context) { …
cbp
  • 25,252
  • 29
  • 125
  • 205
3
votes
2 answers

Geo Restriction for API Gateway and Lambda

We have an AWS lambda function and is mapped to API gateway. I want to enable Geo restriction on our API which is a feature in cloud front. Want it so that my lambda doesn't get hit from countries where we are not providing my services. I believe…
3
votes
1 answer

Can I send static response via aws api gate way?

I am creating an AWS ApiGateway & it invoking a lambda function asynchronously. Once apigateway sent the message lambda it'll send a 200 response with empty response. I need to send some static information with in the response message. { …
3
votes
1 answer

Integrate API Gateway with SNS using Cloudformation

I'm trying to integrate an API Gateway method to a SNS Topic using Cloudformation, but can't figure out how the Uri property should look like. For connecting to Lambda it looks something like: "Integration": { "IntegrationHttpMethod": "POST", …
3
votes
1 answer

AWS Gateway custom authorizer necessary when using AWS_IAM authorization in Method Request?

I'm using AWS Gateway as my web API with AWS Lambda as my serverless backend. Lambda functions are only invoked by my Gateway APIs. Through Lambda I call and execute operations on other AWS Services (RDS, SNS, etc.). I want only my clients to get…
Baran
  • 2,710
  • 1
  • 23
  • 23
3
votes
2 answers

How to access API from AWS API Gateway with PHP SDK 3

Can anyone help figure out how to use AWS Signature, AWS Credentials and PHP SDK 3 to access an API Gateway API? It seems like AWS Signature does not actually attach headers to a Guzzle request. Here is my code:
pzzd
  • 111
  • 1
  • 7
3
votes
2 answers

AWS ApiGateway Latency Issue

I am currently using AWS Lambda for my internal application to application calls using spring framework implemented with jrestless. Application to application call is working perfect with decent latency(~10-15ms ideally) But when I am trying to…
1 2 3
99
100