Category "aws-lambda"

How to trigger AWS lambda functions manually which is already scheduled using event bridge rules

I am using event bridge to trigger a lambda function at 8 everyday to perform some ETL operations. At times i receive requests to trigger the lambda manually on

Can I send data via sockets or HTTP(S) to AWS Gateway or AWS Lambda with an edge device?

I already have an edge device sending data to a device OEM server, which is then polled by a lambda function to fetch and process data. I need to change the dev

DLQ redrive failed events back to DynamoDB streams?

I have a DynamoDB stream triggering a Lambda, and I want to push any failed events to a DLQ. If the source of a DLQ is an SQS queue, it looks like you can do so

Json problems in (AWS lambda, formatting and line by line)

The idea: I want to send some json tweets (from file) to AWS kinesis, S3, lambda, AWS comprehend then S3 again. The sample tweets: [ { "tweet_id": 56758

Is there a way to debug Serverless Framework Typescript functions deployed to AWS Lambda, without using serverless-offline?

What is the best way to debug Typescript Serverless framework functions deployed to AWS Lambda without using serverless-offline package? My project is quite rel

An error occurred (AccessDeniedException) when calling the UpdateFunctionCode operation

I am getting the below error while deploying code to the aws lambda from jenkins pipeline through aws lambda updatefunctioncode command An error occurred (Acc

Can we use dataclasses as DTO in AWS python Lambda for nested JSON

I was looking out for a structure like DTO to store data from json in a AWS python Lambda. I came across dataclasses in python and tried it to create simple dto

AWS Kendra PreHook Lambdas for Data Enrichment

I am working on a POC using Kendra and Salesforce. The connector allows me to connect to my Salesforce Org and index knowledge articles. I have been able to set

"Unexpected token Z in JSON at position 0" when trying to POST web form data to DynamoDB

I am creating an application with a web form that when the user clicks "submit", the data is added to a DynamoDB table. My web form's HTML code includes an API

Why do i get 502 Bad Gateway error in my async express.js middleware?

I have a node API which is deployed and run as a Lambda function inside AWS. // mthd export const validateHeaderBearerToken = (req, res) => { if (!req.heade

AWS SAM-lambda: Cannot import from parent directory containing a fastapi app

I'm trying to deploy a fastapi application to AWS lambda using the SAM client. The issue is that I cannot get Lambda to recognize the parent folder. I have a fa

CORS Error on sending email using SendGrid, setup on AWS Lambda with API Gateway

I was trying to send email using SendGrid from my front end Vite application but was getting CORS error. I came to know that I need a server to make this code w

How to import existing lambda from arn and add SQS as event source? Amplify

I'm trying to create an SNS topic that an SQS queue subscribes to which acts as an event source for a Lambda function. I'm trying to do this with the amplify cd

Cannot run a While Loop in AWS Python Lambda

import asyncio from aiogram import Bot, Dispatcher, types # Handlers async def echo_hello(message: types.Message): while True: await message.reply(

AWS SAM "No response from invoke container for" wrong function name

I've debugged my application, and identified a problem. I have 2 REST API Gateway, and it seems like since they both bind on the same endpoint, the first one wi

How to pass the Amplify app ID to a function? How to do app introspection from backend functions?

Background Amplify apps are easily extensible with Lambda functions, using amplify add function. Great! Problem How can I access the Amplify app ID from the La

How to invoke a lambda function in aws-sdk v3

How can I invoke a lambda function using Javascript (TypeScript) aws-sdk v3? I use the following code which does not seems to work: // the payload (input) to th

aws_cdk python error: Unzipped size must be smaller than 262144000 bytes

I use CDK to deploy a lambda function that uses several python modules. But I got the following error at the deployment. Unzipped size must be smaller than 2621

Custom Lambda image - getting aws-lambda-ric error when trying to run Lambda

I've build a NodeJS project, which I need to run on a custom Docker image. This is my Dockerfile: FROM public.ecr.aws/lambda/nodejs:14-x86_64 # Create app dire

gm imagemagick passing in convert arguments as a string

I'm trying to pass the convert arguments as string to in() without success. works fine if I run this: const GM = require('gm'); const gm = GM.subClass({ imageMa