Questions tagged [aws-http-api]
71 questions
0
votes
2 answers
How to use aws lambda without HTTP api?
Since there is aditional costs for using HTTP and REST apis on AWS lambda, i would like to know if i could make AWS Lambda receive gets and posts without the need of these HTTP API services.
In this example it seems to be…

madruga
- 104
- 1
- 8
0
votes
0 answers
How to create a usage plan for AWS HTTP API?
I am using AWS API Gateway with HTTP API which invokes a lambda function. However HTTP API doesn't include USAGE feature. According to my requirement I need to create a usage for a client depending on the status code of the response sent back by the…

santhosh kadri
- 31
- 1
0
votes
3 answers
AWS API Gateway HTTP API how to pass string query params?
So I am making an app and need AWS API Gateway. I want to use HTTP API instead of REST API. My code looks like this
package main
import (
"database/sql"
"fmt"
"strings"
"github.com/aws/aws-lambda-go/lambda"
_…

Thomas Kiml
- 13
- 1
- 2
0
votes
1 answer
Export methods to use in other file in same lambda function- Node.js
In my lambda using http api gateway with reverse proxy integrated, I need to check for different routes for the API. I have 2 index.js files for now, in the main file, I have the handler:
...
const read_all_Todos =…

ElKePoN
- 822
- 11
- 21
0
votes
1 answer
AWS API gateway: Custom domain supporting multiple Http APIs
I have created two lambda functions
register
login
and both of them are getting triggered from respective "Http APIs" in the API gateway. I have set up the stage for both of them as prod. Now I want to call them using my custom subdomain e.g…
0
votes
1 answer
How to get Account Name using Account Id inside AWS lambda
I'm working on an AWS Lambda function using Node.js 12.x. I have the accountId that I pulled from the event.requestContext. Is there a way how to get the name of the account using the accountId inside the lambda function?

Marek Magic
- 1
- 2
0
votes
3 answers
serverless: request parameters in a httpApi
this is how my serverless.yml section looks like:
my-function:
- http: # <---- http
method: POST
path: /my-function/{id}
request:
parameters:
paths: id:true
I want to use an AWS…

abnormi
- 628
- 1
- 7
- 15
0
votes
1 answer
Using HTTP API stage variable from Lambda function
In AWS API Gateway / HTTP API (not REST API), I've set a stage variable. Is there a way to get the value of that variable in a Lambda function that's called through that API?

Lovro
- 712
- 1
- 10
- 20
0
votes
1 answer
How should a command-line tool use Okta OAuth tokens to authenticate to AWS HTTP APIs for longer than an hour?
I am authoring a CLI tool that accesses an AWS Lambda-hosted service, accessed via an AWS HTTP API Gateway. The API Gateway is configured to authenticate clients using its support for JWT authorizers.
The IdP I am using is Okta. If I pass an ID…

Aidan Steele
- 10,999
- 6
- 38
- 59
0
votes
0 answers
AWS::Serverless::HttpApi Minimum TLS version
As the Title Suggest , I would like to ask if there's a way to set minimum version of TLS1.2 for AWS::Serverless::HttpApi ?

DarkArtistry
- 434
- 1
- 6
- 22
-1
votes
1 answer
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 execute the lambda behind the api, which shouldn't…

Jackson
- 1,340
- 3
- 12