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
25
votes
3 answers

How to upload file to lambda function or API Gateway?

I'm trying to upload a file from iOS to AWS API Gateway and pass it through to a Lambda function, How can I implement this scenario? I can use multipart/form-data to upload to AWS API Gateway but how make input Model support binary data? [Edit1]…
Henawey
  • 508
  • 1
  • 9
  • 18
24
votes
2 answers

Configuring logging of AWS API Gateway

I created a lambda function to upload files to s3. When testing via the AWS interface, everything works. Next I created the API Gateway and tried to make a request through ReactJs. But I get an error. I want to see what error occurs but I cannot add…
Jekson
  • 2,892
  • 8
  • 44
  • 79
24
votes
1 answer

Cannot import certificates for EDGE while REGIONAL is active

I am trying to use a certificate issued in eu-central-1 for my apigateway which is regional and works in the same region. My terraform code is as follows: //ACM Certificate provider "aws" { region = "eu-central-1" alias =…
Arcones
  • 3,954
  • 4
  • 26
  • 46
24
votes
2 answers

Export existing AWS Lambda and API Gateway to Cloudformation template

How to export existing configured and tested infrastructure (including AWS Lambda functions, API Gateways, ElastiCache clusters, Cloudwatch rules) to Cloudformation template? I know about Cloudformer tool, but it supports limited number of AWS…
24
votes
3 answers

Serverless Framework add Lambda to an Existing VPC and Subnet

Is it possible to create a Serverless Framework Lambda deployment where the Lambda is deployed into an existing VPC's SecurityGroup? I don't want the service deployment or it's stack to own an of the network artifacts?
24
votes
5 answers

Request validation using serverless framework

I am using serverless framework for the backend. How can I implement request validation? (do not want to write validation inside lambda functions).
24
votes
3 answers

How to pass API Gateway authorizer context to a HTTP integration

I have successfully implemented a Lambda authorizer for my AWS API Gateway, but I want to pass a few custom properties from it to my Node.js endpoint. My output from my authorizer follows the format specified by AWS, as seen below. { …
Magnus Engdal
  • 5,446
  • 3
  • 31
  • 50
24
votes
4 answers

How do I cloudform an API gateway resource with a lambda proxy integration

I've been trying to work out how to express (in cloudformation) an API Gateway Resource that has a Lambda function integration type using the Lambda Proxy integration. This is easy to do in the AWS console as there is a check box that you can…
sihil
  • 2,563
  • 1
  • 17
  • 24
23
votes
4 answers

AWS CDK how to create an API Gateway backed by Lambda from OpenApi spec?

I want to use AWS CDK to define an API Gateway and a lambda that the APIG will proxy to. The OpenAPI spec supports a x-amazon-apigateway-integration custom extension to the Swagger spec (detailed here), for which an invocation URL of the lambda is…
John
  • 10,837
  • 17
  • 78
  • 141
23
votes
6 answers

Amazon CloudWatch: How to find ARN of CloudWatch Log group

I configure Custom Access Logging for Amazon API Gateway and I need to specify CloudWatch Group name, but when I put these just name of log group in format like "API-Gateway-Execution-Logs_3j5w5m7kv9/stage-name" I get such error: Invalid ARN…
Hleb
  • 7,037
  • 12
  • 58
  • 117
23
votes
1 answer

Malformed Lambda proxy response from AWS API Gateway calling a Lambda

In my project i create a py function for check and modify my google calendar like this: def main(event, context): ck_app = check(event['calID'], event['datada'], event['dataa']) if not ck_app: insert(event['calID'], event['datada'],…
AleMal
  • 1,977
  • 6
  • 24
  • 49
23
votes
6 answers

How to get the HTTP method in AWS Lambda?

In an AWS Lambda code, how can I get the HTTP method (e.g. GET, POST...) of an HTTP request coming from the AWS Gateway API? I understand from the documentation that context.httpMethod is the solution for that. However, I cannot manage to make it…
22
votes
2 answers

How to access AWS API Gateway documentation using Swagger UI

I have created API using AWS Api Gateway. Then i have documented documentation parts for all the entities ( like API, RESOURCE, METHOD, MODEL etc). Then using AWS Gateway Console i have published the documentation to dev stage with version 1 But i…
LP13
  • 30,567
  • 53
  • 217
  • 400
22
votes
7 answers

AWS API Gateway OPTIONS requests returns 500 error

I'm very new to the API Gateway and Lambda. I'm attempting to deploy a Node.js Express-based API to lambda. I'm using the aws-serverless-express example from awslabs. As such, much of my AWS configuration was automatically created for me. It seems…
Doug Hughes
  • 931
  • 1
  • 9
  • 21
22
votes
3 answers

Is significant latency introduced by API Gateway?

I'm trying to figure out where the latency in my calls is coming from, please let me know if any of this information could be presented in a format that is more clear! Some background: I have two systems--System A and System B. I manually (through…
danielle
  • 813
  • 2
  • 10
  • 26