skip to Main Content

AWS HTTP API Gateway + Lambda ( Node/express) 503 Service unavailable

I don't have much knowledge in AWS I have following setup, const express = require("express"); const serverless = require("serverless-http"); const app = express(); app.use(cors()); app.use((req, res, next) => { res.setHeader('Connection', 'keep-alive'); res.setHeader('Keep-Alive', 'timeout=30'); res.setHeader("Access-Control-Allow-Headers", "X-Requested-With,content-type"); res.setHeader("Access-Control-Allow-Origin", "*"); res.setHeader("Access-Control-Allow-Methods", "GET, POST,…

VIEW QUESTION

Number of deleted messages is twice as many as received messages

I created SQS service with terraform resource "aws_sqs_queue" "ses_queue" { name = "ses_queue" message_retention_seconds = 86400 receive_wait_time_seconds = 1 visibility_timeout_seconds = 15 } resource "aws_lambda_event_source_mapping" "send_email_message" { event_source_arn = aws_sqs_queue.ses_queue.arn function_name = aws_lambda_function.send_email_message.function_name batch_size = 5 } I am sending…

VIEW QUESTION

Layers consume more than the available size of 262144000 bytes when serverless deploy

Error: UPDATE_FAILED: MainLambdaFunction (AWS::Lambda::Function) Resource handler returned message: "Layers consume more than the available size of 262144000 bytes (Service: Lambda, Status Code: 400, Request ID: 77d73bfc-51e1-490a-98b4-fdf8066d225b)" (RequestToken: 98920b07-72f7-ca3d-ec22-e49a5de4101a, HandlerErrorCode: InvalidRequest) i tried to deploy the lambda with docker i faced…

VIEW QUESTION
Back To Top
Search