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
18
votes
1 answer

CloudFront and API Gateway service on same domain

I want to: Distribute the static part of the website (html, css, js) on my domain www.example.com. Put API Gateway services on my domain under a folder, www.example.com/v1. How do I accomplish this? In route 53, from what I understand I can only…
18
votes
2 answers

How to integrate API Gateway with SQS

Just like in the title. I try to integrate API Gateway method with a SQS using cloud formation. What I am missing is the correct URI for the SQS. If any of you already did that, what should the URI look like? I came up with something like that, but…
greg
  • 1,857
  • 2
  • 20
  • 32
18
votes
2 answers

How to authenticate users for AWS API Gateway?

I am creating a server less REST API using AWS API Gateway and AWS Lambda. While the end points have been created and linked with the corresponding Lambda functions, next step is to add authentication layer to authenticate users via email and…
Mandeep Singh
  • 7,674
  • 19
  • 62
  • 104
18
votes
5 answers

Mapping Lambda output to API Gateway header

I'm trying to map the JSON output from a Lambda function to the header of an API Gateway call. As an example here, we can consider a redirect scenario. So I'd like to add a Location header to the response from my API Gateway call. JSON output from…
18
votes
2 answers

AWS API Gateway: How to pass IAM identity to Lambda function?

I've successfully configured IAM-authenticated access to my Lambda function with AWS API Gateway front-end, but unable to find how to pass IAM user identity to my Lambda function. I need exactly IAM user identity and can not run Lambda function…
AlexeyVMP
  • 2,386
  • 3
  • 24
  • 31
17
votes
3 answers

AWS CDK passing API Gateway URL to static site in same Stack

I'm trying to deploy an S3 static website and API gateway/lambda in a single stack. The javascript in the S3 static site calls the lambda to populate an HTML list but it needs to know the API Gateway URL for the lambda integration. Currently, I…
Tim
  • 435
  • 1
  • 4
  • 12
17
votes
3 answers

What is the --rest-api-id and --resource-id and where do I find them?

I want to run this command: https://docs.aws.amazon.com/cli/latest/reference/apigateway/test-invoke-method.html It requires these two fields, but I can't find any docs and where these are: aws apigateway test-invoke-method --rest-api-id 1234123412…
red888
  • 27,709
  • 55
  • 204
  • 392
17
votes
9 answers

"message" : "Internal server error" issue with Lambda/API Gateway and iOS

I've set up a lambda function and created some GET and POST methods inside the API Gateway which seem to work fine when testing them inside the web application. I am then trying to call the functions inside an iOS application which is set up using…
17
votes
4 answers

AWS Cloudfront (with WAF) + API Gateway: how to force access through Cloudfront?

I want to put WAF in front of API Gateway, and with the (little) info I find that is only possible by manually putting an extra Cloudfront distribution with WAF enabled, in front of APIG. It's a bit of a shame, especially since APIG now supports…
17
votes
3 answers

AWS API Gateway and Python Lambda returning HTML

I'm trying to return a webpage from my python lambda ftn, using API GW. Instead, I'm getting my page embeded in a tag within the body, instead of the return value being the full page ( header, body, etc... without the pre> Any suggestions what I…
Quadgnim
  • 531
  • 1
  • 6
  • 11
17
votes
2 answers

Nginx proxy_pass to aws Api Gateway

I want to configure Nginx reverse proxy server which will redirect all of the requests it gets by HTTP to my AWS Api Gateway endpoint which is HTTPS (its a GET method). (If you want to know why, the reason for this is that I have an AWS Lambda…
yishaiz
  • 2,433
  • 4
  • 28
  • 49
17
votes
5 answers

AWS API Gateway Custom Authorizer AuthorizerConfigurationException

For a Kinesis stream, I created a proxy API using AWS API Gateway. I added a custom authorizer using python Lambda for the proxy. After publish of lambda function and deploy of API, I was able to successfully test the API using Gateway Test…
17
votes
8 answers

redirecting from aws api gateway using response 302

I am trying to make the redirect work in AWS API gateway. I configured the method response to include Location in the header and on the Integration Response, I set the parameter as : Location = integration.response.body.location. however, when I…
leo c
  • 663
  • 3
  • 8
  • 19
17
votes
3 answers

How to get the ID of a API from AWS API gateway

I have created an API in Amazon API Gateway using the web browser. Now How can I get the ID of the API that I have just created???
LynAs
  • 6,407
  • 14
  • 48
  • 83
16
votes
3 answers

AWS: Cognito integration with a beta HTTP API in API Gateway?

Amazon Web Services introduced a beta release of HTTP API as a new product on API Gateway early last month. Its authentication is managed using JSON Web Tokens and configured with a form asking for "Name of the Authorizer" "Identity Source... a…