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

How to Enable CORS for an AWS API Gateway Resource

I created REST API using AWS API Gateway & AWS Lambda and when I configured CORS I faced with such issue - I was able to configure CORS response headers for OPTIONS method, but didn't for GET method. I made it according Amazon documentation, but…
Hleb
  • 7,037
  • 12
  • 58
  • 117
3
votes
0 answers

DynamoDB query using AWS Lambda

I am trying to select an entry from my database with id "1" (primary key) I am not sure what I am doing wrong, I also tried .getItem() method however with no positive result. 'use strict'; var AWS = require('aws-sdk'), documentClient = new…
3
votes
0 answers

OAuth using AWS Lambda and AWS API Gateway

I know AWS has added custom authorizers to support API Gateways (link: https://aws.amazon.com/blogs/compute/introducing-custom-authorizers-in-amazon-api-gateway/), but I have a basic question in the context of enabling OAuth on the APIs. I've so…
Vinay
  • 405
  • 2
  • 10
  • 17
3
votes
4 answers

AWS Deploying environment and create environments for dev and prod

Greeting all, I'm looking for a way to deploy my application which contains: API Gateway DynamoDB Lambda Functions An S3 bucket I looked at CloudFormation and CodeDeploy but I'm unsure how to proceed without EC2... All the information I find is…
3
votes
1 answer

How to use AWS SDK for request signing

I'm trying to invoke an api request (service: execute-api) and a Signature v4 is required. I've been going through the documentation and I see clearly this: Alternatively, you can use the AWS CLI or one of the AWS SDKs to handle request signing…
jackie
  • 624
  • 2
  • 13
  • 35
3
votes
0 answers

Make AWS API Gateway with Lambda Invocation return 413 Payload Too Large

I am currently using AWS API Gateway in combination with a lambda invocation. This is working perfectly, as long as I stay withing the known AWS Lambda Limits. One of the calls receives a file via a POST request, so that goes fine as long as the…
Bram Vandewalle
  • 1,624
  • 3
  • 20
  • 29
3
votes
1 answer

Use AWS API gateway to trigger python script running on EC2 instance and pass arguments

I am trying to send inputs to my python script running on EC2 instance using the AWS API gateway. The workflow is as follows: Users send an API request to AWS API gateway with parameters. The AWS API gateway then triggers the python script with the…
nnay84
  • 167
  • 1
  • 12
3
votes
2 answers

API Gateway - Too Many Requests Exception (429)

Currently, I've been receiving this error in Bitbucket. The pipeline sequence is that serverless is deployed (./node_modules/.bin/serverless deploy -s devme) then run a javascript that would update the API gateway (to create API gateway models).…
Steven
  • 821
  • 1
  • 10
  • 24
3
votes
1 answer

AWS API Gateway Query parameter validation

I have been trying to validate my request parameters using x-amazon-apigateway-request-validator, but unfortunately it is not working. Below is swagger file- { "swagger": "2.0", "info": { "title": "API Gateway - Request Validation Demo" …
Abie
  • 624
  • 5
  • 12
3
votes
0 answers

AWS SpringLambdaContainerHandler lambda and API gateway integration.. getting 502 "Gateway Timeout"

Getting 502 "Gateway Timeout" for AWS SpringLambdaContainerHandler lambda and API gateway integration I am trying to have an API gateway bound to a lambda function using SpringLambdaContainerHandler in aws. Here are the relevant classes. package…
khami
  • 31
  • 2
3
votes
3 answers

Images are broken on API Gateway web proxy

I tried creating an AWS API Gateway proxy which will pass any HTTP verbs as 'GET' to the target server (because it was needed for specific purpose). Text and JSON files are transfered without problem, but all images are broken. It seems that API…
3
votes
2 answers

Add stage variable in aws api gateway via cli

What is the right syntax for doing this via the aws cli? aws apigateway update-stage --rest-api-id $api_id --stage-name 'test_stage' --patch-operations op="add",path=/variables,value="{server:8.8.8.8}" I can't get the last part value=".." right.…
zeus1234
  • 453
  • 1
  • 5
  • 15
3
votes
2 answers

Lambda based Application on AWS marketplace

I have the application containing Lambda function, API gateway, and Dynamodb Table. I want to place complete package in AWS marketplace but not as a SaaS product. I want to install this package on customer side. For example - An application, having…
3
votes
1 answer

Trouble getting cognito JWT token back when using Google sign in

Having trouble getting API Gateway JWT Token using Google Sign In. Use Case: We have a cognito user pool set up to use Google as an Identity provider. We also have a set of API endpoints in API Gateway, some of which require an Authorization header…
3
votes
2 answers

API Gateway mapping template : Convert form-data(POST) request to JSON

I am sending some form-data in request body from postman. In aws API Gateway I have set Content-type as "multipart/form-data" and mapping template is following: #set($allParams = $input.params()) { "body-json" : $input.json('$'), "params" :…
1 2 3
99
100