aws-api-gateway Questions

17

I am building a serverless application using AWS Lambda and API Gateway via Visual Studio. I am working in C#, and using the serverless application model (SAM) in order to deploy my API. I build th...
Timberland asked 7/1, 2019 at 0:29

5

Whenever I try to access serverless lambda function via POST through the browser I get the error Response to preflight request doesn't pass access control check: No >'Access-Control-Allow-Origin...

3

I set sample lambda function as follows to detect what is context. This function is hooked by API gateway. import json def lambda_handler(event, context): return { 'isBase64Encoded': False, 'st...
Awl asked 24/5, 2021 at 7:24

2

I am working on a cdk deploy script and I have it somewhat working but am lost/not having luck setting the different stages and applying different lambdas to the api resources. So I have // Constr...
Cockburn asked 8/12, 2020 at 19:57

2

A simple HTTP GET request. When I put the URL into the browser bar, the results come back. (a small JSON object) When I put the same url into Postman (https://www.postman.com/) I got the following ...
Heavenward asked 23/11, 2021 at 6:17

18

Solved

I created an api-gateway to put data in my s3 bucket. When I test it in console it works with no problem. Even when I test my token in the authorizer test it returns an "Allow", so there's nothing ...
Phylactery asked 23/7, 2019 at 16:3

3

Solved

I use lambda as backend for AWS API Gateway with lambda proxy integration and want to add CORS into response header. According to documentation: http://docs.aws.amazon.com/apigateway/latest/devel...
Selfexecuting asked 3/5, 2017 at 10:6

3

I am trying to setup an API Gateway endpoint with a resource policy, which allows access to a specific IAM role in my account. The IAM role is cross-account, setup with a trust policy which allows ...
Legpull asked 23/1, 2020 at 21:18

6

What do you think are the Pros and Cons of using Lambda integration with and without the proxy feature in AWS API Gateway (and more specifically, when using the Serverless framework)? Here's what I...
Stew asked 26/2, 2017 at 21:6

2

I have an AWS API Gateway that uses a custom authorizer, and if the request is authorized, it triggers another lambda function. Since yesterday, whenever I call the API, I get an error saying { "me...

15

I have some issue with API gateway. I made a few API methods, sometimes they work longer than 10 seconds and Amazon returns 504 error. Here is screenshot below: Please help! How can I increase tim...
Jaquesdalcroze asked 12/8, 2015 at 19:3

4

Posting here because I just can't get a redirect working. Using AWS API Gateway linked to a Python Lambda function as a proxy just returns the response and header json. Here is the code import jso...
Snivel asked 6/3, 2019 at 11:29

23

Solved

I am trying a small example with AWS API Gateway and IAM authorization. The AWS API Gateway generated the below Endpoint : https://xyz1234.execute-api.us-east-2.amazonaws.com/Users/users with POST...
Benumb asked 17/5, 2017 at 6:42

3

AWS API Gateway timeout after around 30 seconds. I connected the API gateway to a lambda function that runs far longer than 30 seconds. So the API response times out after around ~30 seconds and gi...
Bullen asked 18/4, 2021 at 17:51

4

Solved

The stage name is added to the url when I deploy the API. Let's say the stage name is "test", then the generated URL for the resource includes the stage name. Something like: https://abcabc.execute...
Vitrescent asked 16/9, 2016 at 3:0

5

Solved

My current solution: My application consists of two separate services/containers deployed to ECS. These services are inside Virtual Private Cloud (VPC) and to expose the application I created EC2 A...

2

Solved

Does AWS API Gateway allows limiting a number of requests from a single IP? I'm building a public API and would like to prevent it from being abused by establishing a limit on a number of times t...
Illona asked 18/7, 2016 at 19:51

5

Solved

We have 3 stages on our API Gateway (Development, Testing, Production) they use a Cognito User Pool Authorizer for authorization, each one of the stages has a different User Pool so this configurat...
Aniline asked 27/2, 2018 at 20:20

3

Solved

I created a lambda function to upload files to s3. When testing via the AWS interface, everything works. Next I created the API Gateway and tried to make a request through ReactJs. But I get an err...
Joyance asked 26/11, 2019 at 13:20

6

Solved

I have setup an API Gateway (v1, not v2) REST API resource using CloudFormation template. Recently I have noticed that the default execute-api endpoint is also created, which I can disable in the s...

5

Solved

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...

4

Solved

I've set up an API Gateway using WebSocket protocol. On the '$connect' route request setting, I selected 'AWS_IAM' as the authorization method. The web app needs to make a connection to this WebSoc...

5

Solved

I created a resource in Amazon's ApiGateway. It is pointing to a Lambda function. This is being hit by a native mobile application (android and ios) which is already in the wild. I now want to mod...
Inhaler asked 18/2, 2016 at 4:15

2

Solved

API Gateway has the concept of stages (e.g: dev, test, prod), and deploying multiple stages via the AWS Console is very straightforward. Is it possible to define and deploy multiple stages with A...
Finisterre asked 18/6, 2020 at 11:40

15

Created Lambda Hello world function using Node.js and created API GateWay trigger for Get call, tried the URL to access Lambda function, getting below error. message: "Internal server error". (ve...
Librium asked 6/12, 2017 at 10:45

© 2022 - 2025 — McMap. All rights reserved.