All Questions
Tagged with aws-api-gateway lambda
137 questions
0
votes
1
answer
54
views
Rewrite ExpressJS Function to AWS Lambda (Multipart-Uploader)
Does someone have an idea, how to rewrite this Express.js function to AWS Lambda for Node.js 18?
const upload = multer()
// Receive chunk and write it to S3 bucket
app.post('/upload', upload.single(&...
1
vote
1
answer
418
views
exec format error in go aws-lambda with terraform
I am actually facing a very rare issue in golang lambda invocation using terraform. So basically i am deploying all my resources using terraform like lambda, api gateway with golang. issue is when i ...
1
vote
0
answers
103
views
Multipart request is failing with error "Required argument [CompletedFileUpload attachment] not specified" on AWS lambda
We have Upload service lambda which is integrated to API gateway exposing rest API endpoint.
AWS lambda has 6 MB limit on file being upload , so we decided to use multipart restful upload request ...
0
votes
1
answer
467
views
Discord won't let me set up this lambda as an endpoint for HTTP POST interactions
I want to set up a new Discord bot to interact via an HTTP endpoint, but I can't get it to work.
(aws lambda in golang, exposed through the aws api gateway)
Here's the main function :
func handler(...
0
votes
1
answer
68
views
How does $.post send request from S3 index.html? is it get or post request?
S3 static hosting index.html file has 2 buttons - A , B. It's a simple app for voting, after clicking on either button it sends through API Gateway a value "a" or "b" to lambda ...
0
votes
1
answer
495
views
Unable to invoke API gateway from Lambda {'message':'Forbidden'}
We have exposed a Lambda A through public API on the API gateway regional endpoint. We have also created the API key. We are able to call this API from the local desktop since this is a public API. ...
0
votes
1
answer
244
views
AWS API gateway not passing data into lambda function upon invocation
I am new to APIs and Lambda, but what I am trying to do is perform a PUT method through my API and invoke a lambda function to update my DynamoDB table. I have tested my lambda function and it works ...
-5
votes
1
answer
679
views
Lambda function not pushing data into DynamoDB table
I'm running a NodeJS lambda function which is triggered by API Gateway.
My goal is to push the data and then send a status response. I think the lambda stops running before the insertData function ...
2
votes
0
answers
562
views
No 'Access-Control-Allow-Origin' header for axios post request to aws lambda function
I'm having trouble making a post request to a lambda function with axios in my web app. I get back the error message "Access to XMLHttpRequest at 'lambdalink' from origin 'http://localhost:4200' ...
-1
votes
1
answer
355
views
CORS not working with Lambda Proxy with container runtime
I'm trying to CORS to my lambda running in a docker image. I've added the headers to my lambda response like so
return {
"statusCode": 200,
"headers": {
...
1
vote
0
answers
289
views
Downloading pdf from S3 via Lambda and API Gateway works on POSTMAN but failed in NodeJs Axios with Chrome error - Failed - Network error
I can download a pdf from S3 via Lambda and API Gateway successfully.
However, I used suggested NodeJs - Axios. It failed with "Failed - Network error".
const downloadSearchResult = async (...
0
votes
1
answer
109
views
Retrieve records in DynamoDB by position
We have an application where the client needs to request some information stored on DynamoDB filtering by date. We have the service created with API Gateway and a Lambda retrieving the corresponding ...
0
votes
2
answers
2k
views
Attach multiple HTTP methods on API Gateway resource using AWS_PROXY integration
How can I attach the PUT and DELETE method on an API Gateway resource using AWS_PROXY integration?
The PUT method is getting overridden by the DELETE method in lambda triggers.
Is there a way to have ...
0
votes
1
answer
199
views
Want response in JSONP format instead of JSON in nodejs using aws lambda and api gateway
Want response in JSONP format instead of JSON in nodejs using aws lambda and api gateway.
my lambda code is:
var axios = require("axios");
exports.handler = async (event) => {
return ...
1
vote
0
answers
173
views
Automated integration testing in lambda support (golang, serverless)
So I have a web app running in serverless. It spins up a bunch of lambdas and then a 'test' lambda is invoked at a later stage of our pipeline to run some api tests against the other lambbas. It ...