Questions tagged [aws-lambda]

AWS Lambda is a compute service that lets you run code without the overhead of managing servers. (Not to be confused with the [lambda] tag, which instead refers to a type of function).

AWS Lambda is a cloud offering from Amazon Web Services (AWS). AWS Lambda is a serverless compute service that runs code in response to events and automatically manages the underlying infrastructure for you.

Resources

Tutorial

30649 questions
8
votes
5 answers

AWS Lambda function trigger on object creation in S3 does not work

I am doing an upload like this: curl -v -X PUT -T "test.xml" -H "Host: my-bucket-upload.s3-eu-central-1.amazonaws.com" -H "Content-Type: application/xml" https://my-bucket-upload.s3-eu-central-1.amazonaws.com/test.xml The file gets uploaded and I…
Mikhail Novikov
  • 623
  • 2
  • 9
  • 23
8
votes
1 answer

Stack creation is hanging on CREATE_IN_PROGRESS

I have been experimenting with lambda backed custom resources.Iam trying to trigger the Lambda function with Custom Resource. On Stack creation, Custom resource is hanging on CREATE_IN_PROGRESS, but Iam able to get the email and also when trying to…
8
votes
1 answer

Lambda function timeout on external call

I have a Lambda function from which I need to make an external API call. I have added the Lambda function to a security group, a VPC, and 2 subnets, and it gives me this text: When you enable VPC, your Lambda function will lose default internet …
getglad
  • 2,514
  • 3
  • 24
  • 47
8
votes
1 answer

Cannot add code to AWS Lambda function using CloudFormation

I'm trying to create the Cloud Formation Stack. The Stack was deployed correctly. Lambda function was created, but the code is not getting added as inline to the function. It says Your Lambda function "lambda_function" cannot be edited inline since…
Neeraj
  • 1,769
  • 3
  • 24
  • 41
8
votes
3 answers

How can I push AWS CodeCommit to S3 using Lambda?

Python is my preferred language but any supported by Lambda will do. -- All AWS Architecture -- I have Prod, Beta, and Gamma branches and corresponding folders in S3. I am looking for a method to have Lambda respond to a CodeCommit trigger and based…
Shawn
  • 561
  • 1
  • 5
  • 12
8
votes
5 answers

Kinesis stream / shard - multiple consumers

I have already read some questions about kinesis shard and multiple consumers but I still don't understand how it works. My use case: I have a kinesis stream with just one shard. I would like to consume this shard using different lambda function,…
p.magalhaes
  • 7,595
  • 10
  • 53
  • 108
8
votes
4 answers

Passing array query parameters with API Gateway to lambda

Can we create a Rest URL like below in API Gateway? [GET] /employees?id=1&id=2&id=3&id=4 I do not find a way to send id array and get that array into a lambda (python) function
mightymahesh
  • 303
  • 3
  • 14
8
votes
2 answers

API Gateway unable to decode base64

I am attempting to use a node based lambda function to return jpeg images from s3, using API Gateway. My Lambda function reads as: s3.getObject(params).promise().then((result) => { let resp = { statusCode: 200, …
Rabona
  • 520
  • 1
  • 5
  • 8
8
votes
1 answer

Any way to store bearer token in AWS Lambda function?

Lambda function is idempotent. I'm calling one of the REST api which has ClientId and Client Secret. Now, for each request I have get bearer token and send response. I know, I can store bearer token in Cloud Database(DynamoDB), but is there any…
Jagdish Idhate
  • 7,513
  • 9
  • 35
  • 51
8
votes
2 answers

AWS SNS Creation times out

I have Lambda function when invoked it creates SNS topic, adds subscribers to it and then publishes a message to it. After publishing the messages it deletes the topic. The name of the topic to be created and the subscribers are supplied to the…
johnny
  • 2,032
  • 1
  • 25
  • 45
8
votes
2 answers

How to process an SNS message in AWS Lambda written in Java?

I have a few lambdas working together through SNS. One lambda receives a request and send data to SNS. Another lambda is subscribed to SNS. It was easy to do in JavaScript as the incoming message just an JS object. Now I am rewriting the lambda to…
MartinTeeVarga
  • 10,478
  • 12
  • 61
  • 98
8
votes
1 answer

How to make Aamzon API Gateway accept requests only from specific host

So my problem is I have a lambda function created in AWS Lambda and is linked to the api gateway. So I want to make sure the request to the lambda function only happens throug my domain www.example.com In this domain I make a request to run the…
8
votes
2 answers

DynamoDB: Query all data and sorted by date descending

I'm new to the AWS DynamoDB and need a guidance from the experts in here. I'm creating an application that will display a list of events with a condition the event date must be greater than today date and order by event date descending. My table…
8
votes
2 answers

Cross-account lambda trigger by kinesis

I'm trying to trigger a lambda in account 'B' by a Kinesis stream in account 'A'. This is similar to what's described here, except the example uses S3 instead of Kinesis. To do this, I'm trying to set up the right permissions, but running into…
Daniel Kats
  • 5,141
  • 15
  • 65
  • 102
8
votes
3 answers

kerberos authentication in lambda function

I have an aws lambda function(nodejs) right now that writes some data to a test kafka cluster. The one thats in production use's kerberos for auth so I was wondering if there was a way to setup my lambda function to authenticate with kerberos. I…
lightweight
  • 3,227
  • 14
  • 79
  • 142