Amazon API Gateway - manages (access control, traffic management etc) of Amazon custom API's
Questions tagged [amazon-gateway]
30 questions
0
votes
0 answers
Dynamically set header values in AWS API Gateway
Question
What are the necessary steps to dynamically set headers in the response from API gateway using the context from the authorizer response.
Current Approach
Here are the current steps I have implemented to set the response header(s)…

Will Udstrand
- 128
- 1
- 1
- 9
0
votes
1 answer
AWS S3 File Gateway File Shares and K8s access
Trying to move all my EC2 applications to K8s. Looks like everything will be OK except mounted File Shares (of AWS FileGateway). Currently part of EC2 instances are using mounted S3 File Shares. These S3 buckets was mounted with command like
mount…

prosto.vint
- 1,403
- 2
- 17
- 30
0
votes
1 answer
AWS SDK Gateway getUsagePlans not working
Im trying to get a list of all the API usage plans on my account, running the cli command returns my desired result, however I cant get the JS SDK version to work in Lambda. What's going wrong? I see in he sdk its paginated but it doesn't return…
0
votes
1 answer
Tracking WebSocket connections in AWS DynamoDB while minimizing strongly consistent reads
I'm working on an app that requires clients to subscribe to some rows of a "Data" DynamoDB table. Clients should receive an initial snapshot, and streaming updates through a WebSocket connection.
What is the most efficient way to do so?
Or, more…

Bogey
- 4,926
- 4
- 32
- 57
0
votes
1 answer
Amazon Websocket API Gateway fails to connect with error Unexpected server response: 500
I have a Websocket API Gateway with a HTTP backend (via vpclink and no proxying) with three routes: default, connect and disconnect.
When I try to connect using wscat it fails with: Unexpected server response: 500
The backend service returns 200 so…

Christian
- 7,433
- 4
- 36
- 61
0
votes
1 answer
Refresh API KEY in AWS Gateway
In AWS Gateway we've got usage plans in which we set up requests limit and api keys which are bound to some usage plans. Is there any option just to refresh api key and keep the same old quota without creating usage plan?
user7515195
0
votes
1 answer
AWS Gateway Lambda Cookies
I am having a problem finding a way of how to access the cookie that is sent to my AWS Lambda. I have an API Gateway with lambda proxy integration (POST) to my Lambda.
From my client java program I am making an http POST request with body(Json) and…

Boco909
- 1
- 1
0
votes
1 answer
AWS Api gateway response to JSON in .NET Core
I'm working on a project where i need to consume AWS API gateway end point in my .NET core API. I'm getting response from AWS api but it's in application/json format.
https://hbgamarapi.azurewebsites.net/GetPressValues
There is no method available…

Osman Aly
- 5
- 2
0
votes
1 answer
Custom Gateway Response message in cloud watch Logs
I would like to user custom messages in AWS API Gateway responses, am i am able to set them easily.
But i would require to log these custom message cloud watch logs.
Request suggestion on the same.
I am able to access $context variable for cloud…

santosh
- 3,947
- 3
- 21
- 32
0
votes
1 answer
What is the format for Lambda Function in Amazon Web Services Websocket Gateway API route setup?
I am attempting to follow this tutorial for setting up a WebSocket API using Amazon API Gatewway:
https://medium.com/@gavinlewis/getting-started-with-websockets-on-api-gateway-with-net-and-the-serverless-framework-9065f37d06e0
Like in the tutorial,…

Orion
- 215
- 2
- 7
0
votes
1 answer
Using serverless to add new lambda functions to same Gateway API?
I'm working on multiple functions that we will be using to manage images in an S3 bucket. I'm trying to figure out how to user serverless to deploy the various node.js scripts to lambda and thus far have figured that part out. But I would like to…

Scott
- 7,983
- 2
- 26
- 41
0
votes
1 answer
Path based AWS API Caching Keys Issue
I have several API paths set up in a test API Gateway setup with a simple 'api' stage. I am using AWS Lambda and wish to cache the results of the lambda call.
There are three test paths (no authentication)
/a/{thing} (GET Caching turned on in…

whardier
- 665
- 5
- 8
0
votes
1 answer
How to create an endpoint with 2 path params. AWS API Gateway
I have an url in such format: resource_1/{id_1}/resource_2/{id_2}/assign.
I know how to create a simple proxy resource with 1 path param. But in my case I got two.
So I decided to create it one by one, at first resource_1/{id_1}/ and then expand it…

Roman Alexandrovich
- 342
- 2
- 14
-1
votes
1 answer
AWS NAT Gateway does not let EC2 connect to Internet
I have a pre-existing VPC with a subnet CIDR of 172.31.80.0/20.
There is an Internet Gateway that has this VPC attached to it.
I created the following
NAT Gateway, it has a public IP and a private IP (172.31.90.191) attached to the same…

LinuxGuru
- 341
- 2
- 11
-1
votes
2 answers
Enabling CORS to access AWS API Gateway?
I'm trying to access an AWS API Gateway with jQuery like:
$.ajax({
method: 'GET',
url: _config.api.invokeUrl + '/mymodel/' + id + '/attr',
headers: {
Authorization: authToken
},
data: {},
contentType:…

Cerin
- 60,957
- 96
- 316
- 522