Category "aws-lambda"

Use AWS Lambda to execute a jupyter notebook on AWS Sagemaker

I made a classifier in Python that uses a lot of libraries. I have uploaded the model to Amazon S3 as a pickle (my_model.pkl). Ideally, every time someone uploa

Restrict Lambda function URL access to CloudFront

AWS have recently released the Lambda function URLs feature which allows a function to be invoked via a URL. I would like to allow my function to be invoked via

AWS API gateway response body template mapping (foreach)

I am trying to save data in S3 through firehose proxied by API gateway. I have create an API gateway endpoint that uses the AWS service integration type and Put

Is there any way to read the contents of an S3 file from an AWS Step Function?

I have a particular workflow where I want to pass a list of 500 json strings from a lambda function to a step function (stepFunction1), and then iterate over th

AWS Lambda - [ERROR] (rapid) Failed to reserve: AlreadyReserved

My AWS Lambda occasionally fails receiving event message from Monday.com. I'm using a containerized Lambda deployment (via Docker). The flow is: There's a Monda

AWS Lambda HTTP POST Request (Node.js)

I'm relatively new to AWS lambda function and nodejs. I'm working on to try and get the list of 5 cities in a country by using HTTP POST request from this websi

Formatting DynamoDB data to normal JSON in AWS Lambda

I'm using AWS Lambda to scan data from a DynamoDB table. This is what I get in return: { "videos": [ { "file": { "S": "file1.mp4" },

How to update agent status from lambda function

I am working on Amazon Connect application. I am using lambda for handling backend data. My requirement is to change agent status from lambda call using AWS SDK

Global variable alternative in a AWS Step Function execution

Im running a workflow using a step function (with SAM), when I needed to send information between lambdas I've used events and everything was perfect! But now,

How to reduce the size of my node js lambda function?

My Node lambda is a fairly small function in terms of what it does/lines of code. yet somehow is sitting at 18mb in size. I think this might be due to me instal

AWS IAM Lambda "is not authorized to perform: lambda:GetFunction"

When I have my IAM Policy for my lambda execution role set to: { "Version": "2012-10-17", "Statement": [ { "Action": [

AWS lambda api gateway error "Malformed Lambda proxy response"

I am trying to set up a hello world example with AWS lambda and serving it through api gateway. I clicked the "Create a Lambda Function", which set up the api g

Using NLTK corpora with AWS Lambda functions in Python

I'm encountering a difficulty when using NLTK corpora (in particular stop words) in AWS Lambda. I'm aware that the corpora need to be downloaded and have done s

Configure DynamoDB stream trigger with insert only

I currently have an AWS DynamoDB stream triggers a Lambda function. The Lambda function is triggered by both insert and update events in the DynamoDB. Is ther

Configure DynamoDB stream trigger with insert only

I currently have an AWS DynamoDB stream triggers a Lambda function. The Lambda function is triggered by both insert and update events in the DynamoDB. Is ther

AWS API Gateway with proxy Lambda: Invalid permissions on Lambda function

I am using AWS API Gateway with a proxy Lambda, when the name of the lambda function is coming as a stage variable. Meaning I have a single API integration whic

Pass multiple inputs into Map State in AWS Step Function

I am trying to use AWS Step Functions to trigger operations on a very large S3 file via Lambda. To do this I am invoking a step function with an input that has

How to install external modules in a Python Lambda Function created by AWS CDK?

I'm using the Python AWS CDK in Cloud9 and I'm deploying a simple Lambda function that is supposed to send an API request to Atlassian's API when an Object is u

Mount EFS to Lambda Container

I have a task that I would like to run inside a container on AWS Lambda. I know, that when using the regular function, not a container, it is possible to mount

How to execute a lambda function which copies objects from one S3 bucket to another via Step functions?

I was able to perform the task to copy data from the source bucket to a destination bucket using lambda function, however, I got an error while executing the la