Category "aws-lambda"

Return excel file from AWS Lambda function

I'm trying to return an excel file through Lambda. It succeeded, but the content is only the base64 encoded string of the file. Here's the code: const xl = requ

Using a "password" that effectively starts a lambda function that triggers an ec2 instance

So I have a lambda function that triggers an amazon ec2 instance and thanks to the api gateway I was able to create a URL for the lambda function. How it works

How to tag a lambda in build.gradle file AWS Java sdk

I have a lambda function that is written in nodejs (using AWS nodejs SDK) and we are using gradle (build.gradle) to package and deploy that to AWS. Deployment i

how to configure cron as jenkins string parameter for AWS Lamda

I have an AWS Lambda function which is running once everyday through a cron defined in my CloudFormation.yaml. The current cron is written as below. Events: St

How to do redis caching in my NodeJs lambda

I am trying to make a chat app. What I want to attain is that, for a particular session, the chats are chached in redis. Once the session is over, I will take t

Dynamodb stream lambda, how to infinite block a partition-key stream

I’m using Dynamodb stream lambda to maintain a kind of business sequence logic. In case of failure, I can only block processing on the affected records fo

Getting user ID in lambda function (go 1.x) from AWS API Gateway

I updated the API (rest) via the amplify CLI to add a path and function (go 1.x), and within the function, I was able to retrieve the user ID via the following:

AWS Lambda Function Direct Post Payload Always Null

I'm trying to use Lambda Functions (C#) with the Function URL for direct access. In postman I'm sending a basic json body that matches the class properties in m

No bugs in codes, why messages are still being sent to Dead Letter Queue?

I have 2 Lambda functions that respectively sent and received some workloads via a SQS. But many messages are unexpectedly sent to DLQ. I am confident that it w

Does AWS Lambda retires out of the box after a timeout during event based invocation from DynamoDB

I have a lambda function that pulls data from the event stream from DynamoDB. Inside the lambda function, I have a REST call to one of the internal API endpoint

Creating Python zip for AWS Lambda using Bazel

I've a monorepo that contains a set of Python AWS lambdas and I'm using Bazel for building and packaging the lambdas. I'm now trying to use Bazel to create a zi

Download or get the original Image name from ImageId in a Collection in Rekognition

After doing a Face search in a collection in rekognition I want to download the images but I am not able to because as you know a collection stores ImageId inst

Is there a way to filter with AWS SNS filter policies from the message body to SQS queues?

I have a general question about SNS filter policies. I know that the filter policies filter based on the Message Attributes. If we wanted to filter based on the

AWS lambda function times out invoked from aws java sdk V2

I have created a AWS lambda function (written in python) that reads a tar.gz file from one S3 bucket, unzips and untars it and writes the extracted files to ano

Unable to restrict access to an API endpoint in lambda using IAM policy

I want to construct an IAM policy that explicitly allows invocation of lambda function for a particular API and deny for the rest. My API : /api/v1/type/{type_i

Cannot import package in AWS lambda with Nodejs14.x ES module

I have a layer where the path of node_modules is nodejs/node14/node_modules. Using that layer, and I try to import a package in a Lambda function, say 'aws-clou

ImageMagick lambda layer aws SAM

I have the following template.yaml from a SAM application AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Description: > image

Unable to create AWS CloudFormation stack

I am changing the Node version of my project to 14 and trying to custom deploy it to my staging environment for testing. But after changing the version to 14, I

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