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
19
votes
4 answers

What is the AWS perfect substitute for Azure SignalR Service?

Recently, I used Azure's "Azure SignalR Service" along with Azure App Service to build a real time chat app. It worked like magic. I loved it! However, I am constrained now to use AWS for my platform and would like an equal substitute service such…
19
votes
2 answers

Setup a basic WebSocket mock in AWS ApiGateway

I am trying to setup an extremely simple WebSocket mock within AWS ApiGateway. However, every attempt I've tried gives me an error: 13:36:52 (X33uOGUfIAMFq7w=) Extended Request Id: X33uOGUfIAMFq7w= 13:36:52 (X33uOGUfIAMFq7w=) Verifying Usage Plan…
lightswitch05
  • 9,058
  • 7
  • 52
  • 75
19
votes
2 answers

AWS cloudwatch is truncating logs

I have created an API using AWS api gateway. Under stages the "Log full requests/responses data" checked and "Enable CloudWatch Logs" is also checked. When i look at the logs in cloudwatch i see some of the logs are "TRUNCATED". In-fact all of the…
LP13
  • 30,567
  • 53
  • 217
  • 400
19
votes
2 answers

serverless-aws-documentation model definitions with optional fields?

I want to define request and response models. I use the Serverless Framework with AWS and everything I'm seeing recommends using serverless-aws-documentation The README says that I need to have this line in…
19
votes
1 answer

URI-based Versioning for AWS API Gateway

I am struggling to understand how AWS API Gateway wants me to organise my APIs such that versioning is straightforward. For example, let's say I have a simple API for getting words from a dictionary, optionally filtering the results by a query…
Mark
  • 1,884
  • 2
  • 25
  • 36
19
votes
2 answers

How to add a custom domain for a serverless-1.0.0 framework defined/deployed API?

Serverless-1.0.0-rc.1 enables to deploy an API to be accessible via a AWS API Gateway. The question: I need the deployed API exposed via a custom domain with SSL certificate instead of the randomly assigned one (URL…
19
votes
4 answers

How to get the name of the stage in an AWS Lambda function linked to API Gateway

I have the following Lambda function configured in AWS Lambda : var AWS = require('aws-sdk'); var DOC = require('dynamodb-doc'); var dynamo = new DOC.DynamoDB(); exports.handler = function(event, context) { var item = { id: 123, …
Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236
19
votes
2 answers

Using AWS Gateway API, can I access the cookies?

Using a HTTP Proxy Integration I want to access the cookies and add one to the json response. Is that possible?
Barry King
  • 683
  • 1
  • 6
  • 21
18
votes
3 answers

AWS SAM Deploy, how to find URL of API Gateway?

How do I find the URL address of the API Gateway after deployment from Command line ? I use a script similar to below to deploy my API Gateway and Authorizer, and it deploys fine.…
user3888307
  • 2,825
  • 5
  • 22
  • 32
18
votes
1 answer

AWS API Gateway DynamoDB GetItem without sort key?

I've a Dynamo Db table with following { "primary_key": { "S": "series" }, "sort_key": { "S": "type-of-brokers" }, "title": { "S": "Types Of Brokers" } , { "primary_key": { "S": "series" }, "sort_key": { "S":…
Garvit Jain
  • 1,862
  • 2
  • 19
  • 27
18
votes
7 answers

Does API Gateway behind CloudFront not support AWS_IAM authentication?

It seems that it is impossible to call a REST API that has AWS_IAM protection enabled through a CloudFront Distribution. Here is how to reproduce this: create a REST API with API Gateway protect a REST API method with AWS_IAM authentication create…
18
votes
2 answers

API Gateway responding with a status of 0, Integration latency 10000ms

Here's the error I got back from my API Gateway autogenerated javascript SDK. { "data": "", "status": 0, "statusText": "", "headers": { }, "config": { "method": "POST", "headers": { …
CamHart
  • 3,825
  • 7
  • 33
  • 69
18
votes
4 answers

Kinesis Firehose putting JSON objects in S3 without seperator comma

Before sending the data I am using JSON.stringify to the data and it looks like this {"data": [{"key1": value1, "key2": value2}, {"key1": value1, "key2": value2}]} But once it passes through AWS API Gateway and Kinesis Firehose puts it to S3 it…
18
votes
3 answers

Is it possible to revoke AWS Cognito IdToken?

Is it possible to revoke AWS Cognito IdToken got after user authentication with it's username and password? In my usecase the access to API Gateway endpoints is restricted by Cognito User Pool Authorizer which takes IdToken as an argument in…
18
votes
2 answers

How to pass parameters to an AWS Lambda Function using Python

I have written an AWS Lambda function in Python that filters through instances and turns them on or off depending on how they are tagged. This will show you a working function, and the set-up needed to get it working. If you have questions on…