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

AWS Amplify Gateway REST - React (good) vs React Native (403)

I am looking to create one API via AWS Amplify that I can query/post to from React and React Native. I set up the API and Lambdas via serverless, and a user pool manually via the Cognito console, with two separate app clients for each platform. The…
3
votes
2 answers

AWS Api gateway custom domain routing to wrong base url

I'm developing an Angular Universal serverless app in AWS Lambda/Api gateway. The app works perfectly using the standard api url ( {api-id}.execute-api.{region}.amazonaws.com/{stage}/) but now I'm trying to deploy it in a human-readable url using…
3
votes
2 answers

apigateway websocket sqs integration

I am trying to integrate an API Gateway WebSocket Route with SQS. I have configured the SQS Integration with below properties AWS Region: ap-southeast-1 AWS Service: SQS HTTP Method : POST Path override: 111111110111/my-queue Configured Request…
3
votes
1 answer

AWS API Gateway simple http proxy Invalid endpoint address

I am trying to use an AWS API gateway to configure simple http proxy, following the example from this page: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-api-as-simple-proxy-for-http.html The issue I'm running into…
mojoken
  • 1,256
  • 1
  • 15
  • 27
3
votes
1 answer

API Gateway WebSocket API postConnection timeout

I'm trying to set up a WebSocket API on API Gateway. I'm following the basic tutorial, and I have everything up and running -> Routes for $connect, $disconnect, "test", $default. I am able to connect to the API, store the connectionId in Redis, and…
kvnam
  • 1,285
  • 2
  • 19
  • 34
3
votes
2 answers

Webservice exposed using AWS API Gateway is not accessible from the EC2 instance. Returns 403 { "message": "Forbidden" }

I created REST API using AWS API Gateway with following details Endpoint Type: Edge Optimized Integration Type: Mock The API is open with Auth: None Api Key Required: False Request Validator: None Resource-policy: Not defined I successfully…
Prakash
  • 163
  • 8
3
votes
2 answers

API Gateway - Custom Authorizer was not working

I have run into some trouble configuring/using Authentication on AWS ApiGateway. I already have my lambda function set up with a code the receives the AWS authentication model, see below, which basically decodifies the JWT token and verifies if the…
3
votes
1 answer

AWS API gateway unable to execute lambda?

So in AWS I have a lambda that I can execute directly from the console. However when I execute the API gateway I am getting this error. { "message": "Internal server error" } Execution log for request 799250bf-2589-11e9-8e14-6396967e56cf Thu Jan…
SPD
  • 363
  • 1
  • 2
  • 15
3
votes
1 answer

Test AWS Cognito login with Postman

I'm trying to test the Lambda functions that I have created and which sit behind a Cognito login. My Lambda functions require that cognitoIdentityId is set in order to identitfy the user. I've been following the Use Postman to Call a REST API…
Andrew Lynch
  • 1,297
  • 3
  • 14
  • 25
3
votes
3 answers

AWS API Gateway "Unsupported method \"undefined\"" as response

I am setting up a AWS Lambda function to connect to my DynamoDB. To access it I'm also setting up an API Gateway. The lambda seems to work when I test it. Because of this I believe the issue to be in the API gateway setup. For the lambda I have…
Vinagy
  • 133
  • 2
  • 11
3
votes
1 answer

Accessing URL path in AWS Lambda Authorizer

In API Gateway I have a GET endpoint like following (with some request headers too) http://awesomedomain/v1/myspecialkey/find?a=b Is there a way the Lambda (Authorizer) code can read "myspecialkey"? Thanks in advance
3
votes
0 answers

Forbidden when calling api from custom domain registered in CloudFlare

I have a working API-Gateway solution, when I call the API-Gateway directly I get a 200 response as expected. We use CloudFlare as our DNS provider so I have registered the endpoint there and got a 403 "Forbidden". After reading though various…
3
votes
1 answer

500 error when authenticating ALB + AWS Cognito

I am trying to authenticate Lambda via Aws ALB + Cognito. When I launch the DNS server, it redirects me to login page, I'm able to signup and verify the user. Also, I could see the user added to users in userpool. After sign in, it gives 500…
3
votes
1 answer

How to connect Amazon AWS API Gateway to Amazon RDS?

I have an Amazon AWS RDS (PostgreSQL) database. I am trying to connect it to Amazon API Gateway as simply as possible (AWS Service WITHOUT Lambda). I am trying to perform a simple get request. To get all "animals" (table name "animals") from the…
3
votes
3 answers

Can SELECT content from S3 Object be used with API Gateway?

My aim is to use S3 in AWS to store csv files and API Gateway to query those objects and ideally select rows and columns from within the csv files and return them in my web app. In AWS, there is a method for selecting content from S3 objects. It…
Graham Hesketh
  • 317
  • 3
  • 16