Questions tagged [aws-api-gateway-v2]

17 questions
3
votes
1 answer

API Gateway v2 not returning CORS headers from OPTIONS call

Got an API Gateway v2 that is pointing at a Lambda that is running into CORS issues when I send a POST from a website running on localhost. As part of the troubleshooting I'm mimicking a preflight request with curl. It's not working how I'd…
jcollum
  • 43,623
  • 55
  • 191
  • 321
2
votes
2 answers

AWS API Gateway to EventBridge pass request.headers

I have been using AWS_PROXY integration from API Gateway to trigger AWS Lambda functions many times and in the event I always receive 'headers' along with 'body' and many other parameters. Now I try to use the Integration Subtype…
1
vote
2 answers

How to setup api gateway integration to invoke step function?

I am trying to invoke step function and pass an input "id" from request path. When I invoke it, I get message "errorMessage": "Unable to resolve property Input from source {\"id\":\"$request.path.id\"}. Please make sure that the request to API…
epitka
  • 17,275
  • 20
  • 88
  • 141
1
vote
0 answers

Why does Postman convert response headers from lowercase to PascalCase from my .NET AWS Lambda?

I have a .NET 6 function hosted behind AWS API Gateway. When calling the API, consumers are expected to pass in a custom header, let's call it x-foo. My .NET code passes back this header and its value in its response, and it doesn't change the…
0
votes
1 answer

CORS error when accessing API Gateway with Cognito authentication from React application

I am using API gateway with cognito for Authorize a POST method endpoint. if I am running it through Postman (JSON) it works great. BUT when I am running through a react app in CHROME I get Access to XMLHttpRequest at…
0
votes
0 answers

Attach AWS API Gateway Custom Authorizer to a Route

I would like to attach a custom Authorizer to an API Gateway Route. The API Gateway and the custom Authorizer are deployed with Terraform together with the whole infrastrucuture. Now I want to deploy some Lambda Function as Routes of my API…
nbl7
  • 511
  • 4
  • 14
0
votes
1 answer

How can I test an AWS API Gateway API Route without using the AWS CLI?

I'm following the AWS Tutorial "Using Lambda with API Gateway". I have set up my Lambda function and API gateway, and now want to test the API connection to the lambda function (I tried in CURL and got a 500, I want to dig deeper). According to the…
Caleb Jay
  • 2,159
  • 3
  • 32
  • 66
0
votes
0 answers

Does AWS API G/w support MTLS with Websockets?

Wondering if AWS API G/w can be used with MTLS, as it has Websockets support. However, the documentation here clearly says I cannot associate Websocket API with a domain that has MTLS enabled. Can somebody help me understand: Why is MTLS not…
tsv
  • 1
  • 4
0
votes
0 answers

How to configure integration in AWS Gateway HTTP API to invoke lambda with Alias

I have AWS API Gateway (v2). The URL contains "execute-api", that means I am using an HTTP API. The API has integration with AWS Lambda as backend. I have configured the lambda to use provisioned concurrency. As per the aws…
LP13
  • 30,567
  • 53
  • 217
  • 400
0
votes
1 answer

How can I add a custom authoriser to AWS CDK v2 apigatewayv2 Websockets?

I have an ApiGateway RestApi with a custom authoriser in AWS CDK v2. Now I want to create a WebSocket with an authoriser. I started by following this guide Stack 3: Api Gateway Websocket API AWS CDK Stack Walk-thru, which has got me as far as…
0
votes
0 answers

API Gateway returns 503 Service Unavailable

I have an API Gateway where a route uses a VPC Link to route the request to a NLB. The VPC Link and NLB both have different VPC. I also set up a peering connection between the respective subnet used for the NPB and VPC Link. However, when I try to…
0
votes
0 answers

¿How to config WAF to API GATEWAY/LAMBDA with serverless framework?

I need set a AWS WAF to AWS API GATEWAY with serverless framework. I tried with this plugin (https://www.serverless.com/plugins/serverless-associate-waf) but don't work. I added this code with serverless.yml : plugins: - serverless-associate-waf …
0
votes
1 answer

What is the proper way to return data using HTTP-API(v2) + Lambda + DynamoDB as a JSON response?

I used to use the REST API, but since v2 I find myself using it more. Is there a proper way to return data "neatly" other than manipulating the database response before returning? I used to use the model feature with REST (v1). What's the…
0
votes
0 answers

API gateway - How can I merge data in APIGateway intergration template language

I am trying to enhance data I am pushing through an APIGateway Websocket with information about the connection and user. The integration is pushing the data into Kinesis for context. I would like to do the following where I can merge the JSON…
hi im Bacon
  • 374
  • 1
  • 12
0
votes
1 answer

AWS::ApiGatewayV2::Api - Simple WebSocket configuration throwing INVALID_API_KEY (forbidden)

I did not set any authorization for the Websocket and it throws INVALID_API_KEY. Here's SAM template: ############################################################## # API GATEWAY:…
JobaDiniz
  • 862
  • 1
  • 14
  • 32
1
2