Questions tagged [amazon-lambda]
This tag is for questions about Amazon Web Services' "Lambda".
59
questions with no upvoted or accepted answers
3
votes
1
answer
2k
views
Can't deploy same lambda in multiple regions from s3 bucket
We are deploying a lambda using CloudFormation SAM templates.
We would like to package the lambda into an S3 bucket, then deploy the AWS::Serverless::Function in multiple regions.
However, lambda code ...
3
votes
1
answer
3k
views
Update Amazon RDS Certificate SSL Issue with MySQL Lambda
Like many people I have updated my Amazon RDS Certificate to CA_2019 from CA_2015.
At first everything seemed fine but later on checking I noticed the mysql lambda function which i wrote to query the ...
3
votes
1
answer
4k
views
A CloudFormation stack hangs on creation or deletion when custom resource lambda is broken
I have noticed that if a template contains custom resource lambda, which is broken (there is a runtime error, or it doesn't properly send a response body), then the CloudFormation stack hangs on the ...
2
votes
1
answer
1k
views
AWS CloudFormation - Creating Layer Version and Function that uses layer
I have a Cloudformation template that currently looks roughly like the following.
Resources:
MyLayer:
Type: AWS::Lambda::LayerVersion
Properties:
CompatibleRuntimes:
- nodejs12....
2
votes
1
answer
1k
views
Is DynamoDB latency almost the same as RDS latency?
I am exploring using AWS Lambda through Laravel Vapor. Avoiding the use of Redis can save us ~$56/mo (t2.small at ~$24, NAT Gateway at ~$32).
Instead of Redis, I plan to use DynamoDB which is much ...
2
votes
1
answer
170
views
How to measure GB-seconds for AWS EC2
We are researching on the possibilities of moving our app from EC2 based implementation to AWS lambda. We are trying to project how much money we will be saving if we do so. The lambda pricing says it ...
2
votes
4
answers
1k
views
I have SQS -> Lambda -> SNS (my messages end up in the dead letter queue)
I have a Lambda function that has a fixed concurrency of 1 that has an SQS trigger configured with a batchSize of 10. This Lambda function only publishes whatever it encounters to an SNS topic (the ...
2
votes
1
answer
5k
views
Allow other AWS services to invoke Lambda using IAM
Is it possible to grant AWS services (e.g. API gateway, Secrets Manager) permission to invoke a Lambda function using only IAM roles? Normally this is done in the function's policy (resource-based ...
1
vote
1
answer
884
views
AWS: API gateway 502 error randomly with Runtime segmentation faults
I am using AWS and have an api which is called via API gateway which calls a node.js lambda function.
Very often but randomly I get 502 responses but when I immediately try again with the exact same ...
1
vote
0
answers
187
views
Creating a custom CloudWatch Event to monitor every new commit for GitHub repository instead of CodeCommit repo state change
Could you please assist me in understanding if it is possible to create a custom CloudWatch Event to monitor every new commit for GitHub repositories instead of CodeCommit repo state changes? It has ...
1
vote
1
answer
2k
views
CloudFront does not seem to invoke lambda@edge function
I have a CloudFront distribution. The origin is an S3 bucket that uses OAI.
I have created a lambda@edge function following directions from https://aws.amazon.com/blogs/compute/implementing-default-...
1
vote
1
answer
870
views
What is causing BadRequestException when calling the ExecuteStatement operation on Aurora Serverless db
I have a lambda function that retrieves records from AWS Aurora Serverless db. Now I thought of adding api gateway to trigger the lambda function but I get this error
Connect an AWS Lambda function ...
1
vote
0
answers
167
views
Does freezing the cgroup wait for TCP send buffers to be flushed?
What guarantees are there for flushing the TCP send buffers, if any, when the freezer subsystem freezes a cgroup?
Consider the following scenario: Server A, which runs in a cgroup, sends data to ...
1
vote
0
answers
39
views
Is there a 1:1 correspondence between CodeDeploy applications and a Lambda?
We're investigating CodeDeploy for automating deployments of a service that is comprised of:
Multiple Lambdas, with some triggered by SQS queues and others
accepting HTTP requests via API Gateway
API ...
1
vote
0
answers
74
views
Autoscaling - lifecylehook implementation
I'm trying to implement my first ASG with a lifecycle hook and I am having this issue:
LifecycleHandlerFunction: Encountered unsupported property Role
The following resource(s) failed to create:
[...
1
vote
0
answers
150
views
How to access a private ELB URL in AWS Lambda
I have an ELB that is pointing HTTPS (443) - https://dummyendpint.com. This is in Private VPC and exposed to only whitelisted IP addresses.
Now I am working on this endpoint (https://dummyendpint.com) ...
1
vote
0
answers
101
views
Serverless Lambda infrastructure for listening to Websocket
I'm still new in the AWS Lambda & Api Gateway world, but it seems a good fit to my new project.
I still have some concerns, and I'll be very happy if you can assist.
In my new project (Financial ...
1
vote
0
answers
106
views
AWS data storage: how much to store with Cognito
I am new here.
This is rather a choice-based question rather than purely technical one.
Many mobile apps authenticate with Cognito, and I am going to use the same for ease of use + free tier ...
1
vote
0
answers
742
views
How to create a Sandbox Environment in AWS?
I am trying to create a Sandbox playground in AWS for Users to practice some resources for 30min, after that, all resources should be deleted and account temporary account should also be deleted.
I ...
1
vote
0
answers
164
views
AWS lambda add-permission --source-arn weirdness
I'm following this guide on setting up a lambda function to subcribe to log events. In step 5 you need to "Grant CloudWatch Logs the permission to execute your function" like this:
aws lambda add-...
1
vote
0
answers
1k
views
AWS Lambda: How to install linux dependency packages?
I'm trying to perform HTML to PDF conversion with class library in AWS lambda function. The HTML converter has some dependency packages to be installed in the environment where the conversion takes ...
1
vote
1
answer
2k
views
Lambda cloudwatch trigger in Terraform for Logzio
I can create a Cloudwatch Log trigger in the Designer section of the Lambda dashboard by following these instructions. Everything works as expected. But, I'm having a very difficult time setting ...
1
vote
1
answer
145
views
Heroku + AWS Lambda Hybrid
I currently have a web app running fully on Heroku.
This web app needs a lot of computing power and access to several external APIs during short time periods, and nothing at all if there is no ...
1
vote
0
answers
594
views
The way AWS Lambda@Edge accesses to S3 restricted by Object Access Identity (OAI)
I have a question.
Is the Lambda function (written in node.js) associated with CloudFront accessible to S3 objects restricted by Object Access Identity (OAI)?
If yes, could you tell me how to access?
(...
1
vote
0
answers
342
views
How do I combine multiple SQS metrics with Lambda?
I have SQS monitoring for some services we have. We have two metrics that I'm looking to combine. "Receives" and "Empty Receives".
Is it possible to use something like amazon lambda to create an ...
1
vote
0
answers
964
views
Very slow imagemagick convert call when using AWS Lambda
I've got a relatively simple composite action that I'm carrying out with imagemagick on AWS Lambda. Why does it often take more than a minute to complete?
This composites four smaller images "behind" ...
1
vote
1
answer
1k
views
DynamoDB Streams with Lambda, how to process related messages in order?
I want to use DynamoDB Streams + AWS Lambda to process chat messages. Messages regarding the same conversation user_idX:user_idY (a room) must be processed in order. Global ordering is not important.
...
0
votes
1
answer
29
views
Debugging Lambda Connectivity to EC2
I have a simple Lambda deployed into my VPC that is making a call to an EC2 host in the same VPC (and subnet). They both share an SG and I've used the Reachability Analyzer (from the Lambda ENI to ...
0
votes
0
answers
53
views
How to connect lambda with self-hosted kafka
I am trying to connect kafka and aws lambda on a different hosting provider. When I connect via AWS EC2, it works fine because they are in the same VPC, but when I try to connect kafka and lambda on a ...
0
votes
0
answers
219
views
How to remove headers from all outgoing requests in AWS services (e.g. Lambda)
Just wondering, is there a way to remove a header from all outgoing network requests in AWS?
I have a VPC with public and private subnets and a NAT gateway in the public subnet. A Lambda in this VPC ...
0
votes
0
answers
82
views
What AWS architecture would be mosted suited for a SaaS that uses uses git repositories as data storage?
I am currently working on an application that is dealing with frontmatter markdown files 99% of the time (some things have to communicate with a DB like RDS).
Locally, I have a folder that stores all ...
0
votes
0
answers
142
views
AWS Lambda's indirect S3 requests
I noticed AWS Lambda causes S3 tier 1 and 2 requests. Do these cost anything after 12 months free tier expires?
Specifically:
Create new AWS Lambda function in AWS console causes 1 tier 1 S3 request
...
0
votes
0
answers
386
views
botocore.exceptions.ClientError: An error occurred (InvalidToken) when calling the ListObjectsV2 operation
I have an mlflow server that is hosted on aws, that uses s3 in the background for storage. I am trying to run a lambda-function that runs a python script which accesses the mlflow server, loads a ...
0
votes
0
answers
79
views
What's the best way to deploy large numbers of low-throughput docker containers on AWS?
What's the best, simple way of deploying a lot of containers to AWS? It's necessary to be scalable but cheap if a container sees little or no use.
I have a method of generating docker containers that ...
0
votes
0
answers
558
views
AWS SAM - cannot create stack with api gateway using stage variable for invoked lambda version
Ok, previous question about using different lambda versions on different stages here: AWS - lambda versions to different gateway stages?
Now I'm trying to put it all together using AWS SAM cli but ...
0
votes
0
answers
526
views
Will AWS Lambda deployed from image pull the ECR image on each new instances get initialised
Because of Lambda’s ZIP deployment size limitation I’m changing the way I deploy my Lambda functions to use container image.
The deployed function is located within a VPC, so I have a NAT gateway ...
0
votes
0
answers
184
views
Is it possible for me to identify what services are using an AWS Lambda function?
I'm trying to clean up some Lambda functions in our account. When I click on the Monitor tab for each function, everything is coming up with "No data available". I know at least one of those ...
0
votes
0
answers
314
views
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 ...
0
votes
1
answer
62
views
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
20
views
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 ...
0
votes
1
answer
152
views
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 ...
0
votes
0
answers
1k
views
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 ...
0
votes
1
answer
268
views
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 ...
0
votes
1
answer
62
views
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 ...
0
votes
1
answer
325
views
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 ...
0
votes
0
answers
994
views
Can't connect to a public accessible AWS RDS
I was running a serverless web application on a lambda inside a VPC, and connecting to a Aurora-MySQL RDS instance, with inbound rules to allow traffic from the security group of the lambda
The ...
0
votes
0
answers
1k
views
How can I setup an SQLite database for serverless Cloud Functions?
I have some Serverless Lambda Functions and I would like to host an SQLite database with about a GB of data for free or very cheaply (1 USD per month).
My initial thought is to use Amazon Elastic ...
0
votes
0
answers
892
views
AWS Application Load Balancer returns '412 Precondition Failed' when a conditional header is present
I have an ALB with a Lambda as a target. The lambda is a simple Python one and the only thing it does, is a return of a hardcoded dict. The response is a valid response for ALB and includes Etag ...
0
votes
1
answer
282
views
Why use AWS API Gateway instead of naked Lambda?
This is more of a suggestion that I need.
What is the need for API Gateway when we can directly execute Lambda functions from the apps?
What are the missing pieces provided by API Gateway which we ...
0
votes
1
answer
106
views
New Relic lambda alert not firing
We are using the out-of-the-box AWS integration for New Relic. We have an alert whose Critical Threshold is firing on lambda errors, but the alert is not sending to the alert channels.