Category "aws-lambda"

AWS User is not authorized to access this resource

I'm new to AWS API Gateway and Lambda and I am wondering if anyone could help? I generate an access token using Auth0 and it works on postman returning all of

Error "Read-only file system" in AWS Lambda when downloading a file from S3

I'm seeing the below error from my lambda function when I drop a file.csv into an S3 bucket. The file is not large and I even added a 60 second sleep prior to o

Python in AWS Lambda giving indent error on line that doesn't even exist

I'm trying to setup a simple aws lambda function and no matter what python I put in the function it's returning an error on a line that's not even in the functi

Proper signing of requests to aws resources through http

I have a lambda function that is writing some data to an Elasticsearch domain I have also set up through AWS. Currently the access policy on my domain is just t

How to set environment variables according to stage in cloud formation template

The environment variables in the lambda handler has to be set via lambda handler according to the stage. The values for schema, endpoint are different for diffe

aws-mock-sdk s3.getObject not working

This is my lambda handler where i am using various AWS services. exports.handler = function(event,context){ var body = event; var isValidBody = valida

Backup AWS lambda's functions

I want to backup my configured lambdas in AWS. I already searched online but not mention of how to do this Any idea how to implement this? Thanks

AWS Cloudfront + lambda@edge modify html content (making all links absolute -> relative)

I (maybe falsely) assumed lambda@edge can modify origin.responce content, so wrote a lambda function like this: /* this does not work. response.Body is not defi

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