79 questions
1
vote
0
answers
84
views
API Gateway is censoring/modifying responses from ALB
How should one use the HttpAlbIntegration for HttpApi on API Gateway v2 library?
At current, my application does indeed build and deploy. However, when I query requests.get(endpoint/ping) the response ...
-1
votes
1
answer
106
views
Download a file from external website to AWS S3 bucket
We have external website and there we have link to download a file. I want to download this file to s3 bucket. This website also asks to login before it gets downloaded.
How do we implement it using ...
0
votes
0
answers
50
views
getting 403 forbidden when called aws http gateway post api from s3 bucket
I am trying call Lambda endpoint(aws api gateway) through html page which is located in AWS S3 bucket when i am trying to call api i am getting 403 forbidden error. I am using AWS signature for it ...
0
votes
1
answer
202
views
setting up an amazon webhook and a Lambda function with Telegram
I'm trying to link a telegram bot with a lambda function that bears a LLM. In order to do so, I've used a HTTP API gateway and a webhook. I've also linked my webhook to my telegram bot. My lambda ...
1
vote
2
answers
497
views
Invoke API Gateway Websocket in AWS using a HTTP request
I have a API gateway with a Websocket under a custom domain name and multiple routes integrated with a Lambda function. I am trying to make a https request to the API gateway and have it go through ...
2
votes
4
answers
8k
views
How to solve AWS API gateway timeout error
I have React webapp to make HTTP calls using fetch API.
Calls go to HTTP API gateway which is attached to a lambda function. Lambda function is nothing but contains my entire node/express app (backend)...
0
votes
1
answer
721
views
Create an aws integration in Http API using AWS CDK
I'm using AWS CDK to build a cloudformation stack with HttpApi in it.
HttpApi will have an integration with SQS.
I have the following snippet:
import * as ApiGW2 from "@aws-cdk/aws-apigatewayv2-...
-2
votes
1
answer
127
views
CORS Error When Using Lambda + API Gateway + HTML Form
I am attempting to set up a POST lambda function using AWS Lambda and API Gateway. The POST is coming from a form that i've set up on my website, i created the form using this tutorial from ...
1
vote
1
answer
627
views
Can I integrate aws apigateway http api with aws xray?
Can I integrate AWS apigateway http api with AWS xray? If yes where can I find this information in the documentation.
If no why is there an option to set trace header in http API?
0
votes
1
answer
95
views
AWS API Gateway HTTP API: How to modify the api response before it is returned to the api caller
In AWS API Gateway HTTP API, how can I modify the api response before it is returned to the api caller? Is it even possible?
0
votes
2
answers
722
views
Call http request with Step Functions
I would like to know if I can call http request as a state in Step Functions in order to perform some actions, such as adding a new item to DynamoDb.
Could it be done without using lambda functions?
...
0
votes
1
answer
651
views
Why does my login from the cognito hosted ui fail (using jwt auhtorizer)?
What I'm trying to achieve:
A lambda serving html via an http api route path with a custom subdomain (done!)
Restricting access with an authorizer (done!)
Using Cognitos user-management and login ...
0
votes
0
answers
331
views
AWS Lambda response visible in AWS Console but Axios shows generic error instead
I'm using Serverless to create Python AWS Lambda functions triggered by httpApi events.
My function (yes, I'm just passing back the context passed in by API Gateway so I can look at it):
def ...
0
votes
1
answer
2k
views
AWS API Gateway (HTTP API) getting 404 on other stages and custom domain
I have an HTTP API in AWS API Gateway that has got integration with an internal ALB using a VPC link. Everything's working correctly when I'm accessing using the default endpoint (e.g. https://<api-...
0
votes
1
answer
132
views
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 ...
1
vote
1
answer
4k
views
How to use AWS WAF to protect API Gateway with HTTP APi?
I am deploying an POC environment with API gateway in front of Lambda and HTTP API would be sufficient for our usage (REST API wouldn't be used). I am planning to use AWS Web application as a ...
0
votes
1
answer
269
views
Serverless Deployment on Localstack for Python HTTP API
I have created from serverless project from aws-python-http-api template
My serverless.yml file looks like below
service: aws-http-api
frameworkVersion: '3'
plugins:
- serverless-localstack
...
2
votes
1
answer
1k
views
Using Cloudfront with an HTTP API Origin
I want to redirect HTTP traffic to HTTPS. So I want to put my app, which runs on an API Gateway, behind Cloudfront. But I want to use aws_cdk.aws_cloudfront to launch my Cloudfront instance.
self....
1
vote
1
answer
3k
views
AWS API Gateway HTTP API Not Returning application/json content-type
I am using AWS SAM to build a lambda-based API. Originally I used a "Rest API" but I have converted my Rest API over to a HTTP API but the content type returned from the API is now "...
1
vote
3
answers
542
views
Can anyone provide a working example of an AWS SAM template that has CORS setup in a HttpApi resource?
I have been going round and round trying to get this working. I want to be able to define the CorsConfiguration in the HttpApi resource definition but everything I try simply doesn't work. I can only ...
0
votes
2
answers
1k
views
Creating an ApiGatewayV2 HTTP API Integration with Subtype SQS-SendMessage Fails with 400
I'm using [email protected] to deploy my services, and I'm looking at setting up an HTTP API Proxy to an SQS Service.
I've handled this previously through this plugin - serverless-apigateway-service-...
1
vote
1
answer
839
views
Best way to authorize a single HTTP API request in API Gateway in AWS?
For a reason I won't mention here, I need to give a random person with no account a secret link to my HTTP API method which calls a lambda function in AWS. The API method needs to be under ...
0
votes
1
answer
903
views
Why CloudFront behavior pattern not working as expected?
I have my custom domain being served from s3 bucket via cloudfront which is working fine.
Now I have added another origin which is an endpoint from api gateway that has some routes that I want to ...
2
votes
0
answers
391
views
AWS API Gateway V2 Integration with SQS - CloudFormation
I am trying to create a CloudFormation template to deploy an API Gateway HTTP API integrated with SQS. I used the below CF template:
AWSTemplateFormatVersion: "2010-09-09"
Resources:
...
1
vote
2
answers
1k
views
HTTP API Gateway - How to map authorizer to route in Terraform?
In console, you have to "attach" the authorizer to a route. How is this achieved in TF?
0
votes
0
answers
74
views
AWS HTTP API Gateway with dozens of routes, how should Lambda integration(s) be structured?
I tried creating a single Lambda function using the Node.js language, to handle a few routes of the API. Already the function seems too complex. Is it more common to have individual Lambda functions ...
1
vote
1
answer
2k
views
What is the max limit of quotas on an api on aws?
I have 400 quotas and if I add one more I'm getting an error
'Maximum number of Resources for this API has been reached.'
What is the maximum number? 500-800?
I want to know if I can extend it for ...
2
votes
0
answers
738
views
Cdk to add Http headers in lambda integration request
I have to add few http headers mapped to the context values comes from the lambda authorizer as shown below
"context": {
"company_id": "xxxxx-xxx-xxxxxx",
"...
2
votes
1
answer
1k
views
Defining API path with query string Serverless HTTP API (API Gateway v2)
How can I define the path in serverless.yml with more than one query parameter using HTTP API (API Gateway v2) so that the endpoint looks like the following:
https://example.com/rest/endpoint?id=$id&...
0
votes
0
answers
1k
views
Using HTTP API to call multiple services running on AWS ECS
My goal here is to deploy two spring boot services using AWS ECS Fargate in a private subnet and access them via AWS API Gateway. Basically, I want to use a single HTTP API and then based on the path ...
0
votes
1
answer
80
views
AWS HTTP Api Route To lambda Integration shell(cli) command
I want to automate things. I have created a AWS lambda using shell command. And also HTTP route using shell command in API Gateway. Now i want to connect the route and lambda using shell command. Can ...
0
votes
1
answer
2k
views
how i can add a http api stage in serverless
I am trying to deploy a serverless application to different stages (prod and dev). I want to deploy it to a single API gateway on two different stages
like:-
http://vfdfdf.execute-api.us-west-1....
2
votes
0
answers
460
views
CORS is blocked in the AWS HTTP API Gateway when a custom lambda authorizer is used
I have an API powered by HTTP API Gateway and Lambda that uses a custom authorizer. I use a custom authorizer for a few paths and other paths are haven't authorized and can be accessed publicly.
This ...
2
votes
1
answer
2k
views
AWS SAM - Simple example of HttpApi with Lambda Function Integration
I am new to AWS SAM, and I am trying to modify the Hello World example template to use an open api swagger file to define an API with lambda function integrations. When I run "sam build" ...
7
votes
1
answer
6k
views
Is it possible to make an AWS HTTP API gateway private?
Using AWS Direct Connect, we've built a network between our on-premise and our AWS VPC. We've developed a web application that users will access from within the on-prem network. We're using the HTTP ...
0
votes
1
answer
829
views
AWS deregister an instance from cli and register back
Issue ->
We have few nodes that are in a asg and fronted by an alb. We have many target group. in some cases, we have some nodes in two or more different target groups. When we update our software, ...
2
votes
0
answers
341
views
AWS HTTP API Integration with AWS Step Functions -> Sending Multiple Values in the Input
I have a Type: AWS::Serverless::HttpApi which I am trying to connect to a Type: AWS::Serverless::StateMachine as a trigger. Meaning the HTTP API would trigger the Step Function state machine.
I can ...
1
vote
0
answers
593
views
ASP.NET core web API routing not supported in AWS HTTP API Gateway?
I am trying to transfer an asp.net core web api to my first AWS HTTP API.
I have hosted the asp.net core web api project as a lambda function, and trying to match the endpoints through the API gateway....
0
votes
1
answer
862
views
Amazon API Gateway HTTP API: Custom types in lambda functions in go
I am a little bit confused about how to get custom types passed into my Lambda function using golang and sitting behind a HttpApi.
Consider the following go lambda handler, which is almost a copy of ...
1
vote
1
answer
702
views
Sending Message attributes in API Gateway V2 does not work for $request.header
We are trying to connect API Gateway V2 with API SQS Integration. This integration is working fine and messages are arriving to the queue.
The problem is when we try to add value from header header....
-1
votes
1
answer
388
views
cdk http api cors configuration not working
I have this code which creates an http api, but the cors configuration is not working even though it shows up correctly in the console after deployment. I can still send a request from postman and ...
1
vote
0
answers
229
views
serverless framework: Connecting additional resources (sqs) to api gateway (httpapi)
I have an httpapi apigateway, that I need to integrate directly to an sqs queue (directly).
I found this thread from over a year ago: https://forum.serverless.com/t/api-gateway-integration-with-sqs/...
4
votes
1
answer
5k
views
Is there REST API key equivalent in HTTP API Gateway?
Using REST API (AWS API Gateway v1) we can use X-API-Key header in request and maintain API Key to control access to given endpoint.
In AWS if I go to API Gateway and select REST API (v1) then under ...
0
votes
1
answer
410
views
is ok to choose AWS HTTP API gateway for a mobile application?
I am trying to decide which aws apigateway version choose for my application (HTTP vs REST API gateway).
I am experimenting with AWS HTTP API gateway to see if it works fine for my use case.
These are ...
3
votes
1
answer
1k
views
AWS HTTP API Gateway jwt validation
I have a question regarding the way Http API gateways validate jwt signatures. I use a cognito user pool hosted in eu-west-1 as an identity provider/ token issuer. And I have an Http API gateway ...
0
votes
1
answer
741
views
AWS SAM - local api call to return version 2 of the event
I am using AWS SAM to test my Api gateway and lambdas locally.
When executing sam local start-api and calling a lambda, I'd like the event to be of version 2.0 format instead of version 1.
I am using ...
1
vote
0
answers
459
views
AWS::Serverless::HttpApi Cors configuration working for POST but not OPTIONS
I have been fighting CORS for a while now and I have run out of ideas. I have a AWS::Serverless::HttpApi deployed through SAM. This API has only one endpoint for now, it takes a POST request to /...
6
votes
1
answer
870
views
AWS HTTP API Integration with AWS Step Functions -> Send Multiple Values in the Input
I have a Type: AWS::Serverless::HttpApi which I am trying to connect to a Type: AWS::Serverless::StateMachine as a trigger. Meaning the HTTP API would trigger the Step Function state machine.
I can ...
4
votes
0
answers
1k
views
Difference between AWS::Serverless::Api and AWS::Serverless::HttpApi
I'm having a hard time understanding the difference between AWS::Serverless::Api and AWS::Serverless::HttpApi. I was looking at this AWS repo for Api and HttpApi and wasn't able to understand why I'd ...
2
votes
2
answers
2k
views
AWS API Gateway HttpAPI SAM Custom Domain Name Error
I want to move my existing Rest API to HTTP API, and getting error in custom domain configuration. My SAM file for HTTP API is:
resHttpApiGateway:
Type: AWS::Serverless::HttpApi
Properties:
...