Questions tagged [amazon-lambda]

This tag is for questions about Amazon Web Services' "Lambda".

AWS Lambda lets you run code on the Amazon cloud without provisioning or managing servers. Lambda takes care of everything required to run and scale your uploaded code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app, and pay only for the compute time used.

154 questions
0
votes
0 answers

Build pipeline to upload .jar package to AWS Lambda

So far according to the documentation at https://docs.aws.amazon.com/lambda/latest/dg/java-package.html, the only way to upload .jar code to an AWS Lambda function would be to manually upload the file over their web interface. Is there a way to…
0
votes
1 answer

Sending push notification to s3 origin website from lambda

I want to send a websockets notification from lambda function to clients, on a website hosted via s3 origin with cloudfront. Could someone help me with this, please? Thanks.
0
votes
0 answers

Google cloud functions contains whole application code unlike aws lambda which contains only function specific code

I was using aws lambda for few projects. In lambda i can package only function specific code so every function has only its own code. and now i am using google cloud functions for my new project. I've deployed few functions but all the functions…
0
votes
1 answer

Deploying a Serverless site behind CloudFront

I use Serverless to deploy a website to an AWS Lambda. This works fine. I now want to use CloudFront to proxy access to this Lambda and cache requests for static files. I have set up a CloudFront distribution, and created an origin with the origin…
0
votes
1 answer

Lambda with VPC long cold start

I have few lambda functions that are connecting to Mongo Atlas cluster. Connection between Mongo Atlas and my AWS account is done via VPC Peering. Lambda functions are attached to this VPC. I'm experiencing long cold starts of Lambdas, it's taking…
0
votes
0 answers

How can I set up my HostedZone so that it delegates to a parent DNS record in another AWS account?

Introduction I have some TypeScript code that uses CDK to create an API Gateway and a Lambda. It works and deploys to a standard AWS URL. So far so good. I now need to transfer the API Gateway so that it operates on a custom domain, so that it can…
halfer
  • 161
  • 1
  • 5
  • 25
0
votes
2 answers

Modify AWS Lambda function inside CloudFormation stack

I've launched this stack and needed to update it's Lamdba function, I've made some amendments and hit deploy, a new version of function was saved, however Lambda application still refers to the first version of function, I've tried to update stack,…
0
votes
1 answer

Kubernetes + AWS Lambda

I currently have an API service running on AWS Lambda, but it's getting expensive due to high AWS costs. My aim is to replace 95 % of the usage with a cluster of servers and still handle peaks with Lambda. So, I would need a hybrid setup where the…
0
votes
1 answer

How do i add nodejs runtime layer layer to my Python Lambda on AWS?

wscat test In my Python lambda I want to use wscat which requires node: $ /opt/wscat-layer/bin/wscat /usr/bin/env: node: No such file or directory Question: How do I add nodejs runtime to my Python lambda so i can execute wscat?
Alex B
  • 123
  • 5
0
votes
1 answer

What could be a best solution for ElasticBeanstalk environment stop/start for cost saving

So i have a use case where we only need Elasticbeanstalk environment only in weekdays and in business hours only. So here at the moment i'm using a lambda function which terminates App environment and later next day other lambda will re-build the…
0
votes
1 answer

How to stream CloudWatch log group to specific Lambda function version?

When creating a new subscription filter for a CloudWatch log group, the AWS Console doesn't seem to offer a way to select a specific Lambda fn version. This is important for CI/CD where I might want to update the fn and test it without breaking…
0
votes
1 answer

Lambda connect to mongodb which only allow localhost connection in ec2

I have a MongoDB which only allow connection from localhost, running on my ec2. Currently, only my nodejs app which runs on the same ec2 instance connects to the mongodb using this command mongoose.connect('mongodb://user:pass@localhost:27017/mydb',…
imin
  • 83
  • 11
0
votes
1 answer

Compiling and running untrusted code on a server

In teaching CS, students submit their code to our server and we compile and run with unit tests. Similar to Codeforces, Codewars, and HackerRank. How should we be configuring servers for this? Launch a new minimal VM for each code submission? Is…
apptree
  • 345
  • 1
  • 3
  • 10
0
votes
2 answers

Using AWS lambda or Google Functions to run the a large number of parallel instances of the same script with different arguments

I have a script for collecting data for different social media hashtags. The script currently makes a bunch of sequential HTTP requests, formats the data into a Pandas data frame, and saves it to a csv. For very popular hashtags, it takes hours to…
0
votes
1 answer

How to decrypt Secure String values in Parameter Store using .NET Core's AmazonSimpleSystemsManagementClient

I have the following code in a Lambda function: var ssmConfig = new AmazonSimpleSystemsManagementConfig { RegionEndpoint = RegionEndpoint.APSoutheast2 }; using (var ssmClient = new…
cbp
  • 299
  • 1
  • 3
  • 12
1 2 3
10
11