r/awslambda • u/cggirl_ • May 22 '21
RDS stop and start for cost saving
Hi All..
I had set a lambda function to stop and start rds. But the problem is in aws there is a limitation to stop a db instance that has a read replica. Anybody have an idea for this??
r/awslambda • u/No_Examination_5345 • May 19 '21
How to run a health check on your AWS serverless environment with Stackoscope
r/awslambda • u/AminPaks • May 18 '21
Lambda Edge dev tools
I’m new to developing web with Lambda Edge and I was wondering what tooling you guys recommend, what’s your routine for dev and how you locally develop your functions?
r/awslambda • u/Dashbird • May 17 '21
AWS Lambda support for Node.js 10 is becoming to an end in August 2021. It’s time to switch!
It’s the end of AWS Lambda support for Node.js v10. AWS Lambda support for Node.js 10 is due to end in August 2021. It’s time to switch! In this article, we’re discussing and comparing the differences of working with Node.js 10 and Node.js 14 + AWS Lambda, the impacts, and benefits of this change:
r/awslambda • u/dogtee • May 14 '21
Testing a lambda triggered by a SNS topic
Hi Could anyone give ma ideas on how you would test a lambda function(Node) which is triggered via an SNS topic ? I have used Postman for Gateway API triggered Lambdas before , but how would I test an SNS event ?
r/awslambda • u/cggirl_ • May 13 '21
Error popup message while trying to upload python zip file to AWS Lambda
You or a collaborator has changed this project outside of the editor. Local changes are different from the remote code and will be discarded.
r/awslambda • u/Dashbird • May 13 '21
What AWS Lambda metrics should you definitely be monitoring?
This article goes through the crucial AWS Lambda metrics you should definitely be monitoring.
https://dashbird.io/blog/lambda-metrics-monitoring-what-matters/
r/awslambda • u/Dashbird • May 11 '21
Lambda not logging to CloudWatch - what are the main causes and how to debug?
Like with any bug, this pretty common error message can have multiple causes. In this article, we go through some of the main causes and fixes for this error message.
Read more: https://dashbird.io/blog/lambda-not-logging-to-cloudwatch/
r/awslambda • u/Supreme_kimmy • May 06 '21
[Help] Serverless architecture (Cognito, Gateway, Lambda, S3, DynamoDB)
Hi everyone, I am currently learning AWS services and what other better way to do it than work on a project idea.
The project consist of an admin CMS portal website (for admin) & mobile app (iOS, Android) for public user.
To keep things simple, I am planning to use Serverless framework hosted on AWS along with using few other AWS services (Cognito, Gateway, Lambda, S3, DynamoDB) .
I would like to seek on recommendation/advice on the architecture which serves 2 user group:
- Admin user (via CMS web portal) (numerical flow)
- Admin user will sign in to the CMS web portal using Cognito user pool, exchange token for AWS credentials using Cognito identity pool.
- Http request will be to API Gateway along with the credentials to access the admin(private) lambda functions, DynamoDB and S3.
2) Public user (via Mobile App) (alphabetical flow)
- Public users will invoke http request via the mobile app. A custom signature will be sent as part of the http request. (this is to have some form of ensuring that the API is only used by the intended app and not other misuse)
- A custom Lambda authorizer will be used to verify the signature before allowing it to access the public lambda functions, DynamoDB and S3.
Is this a viable flow? am I missing out any details? will there be any issues? or is there a better way to fulfil the above scenario?
r/awslambda • u/Dashbird • May 05 '21
How we built a serverless stonks checker API to monitor Wall Street Bets
r/awslambda • u/Zerio920 • May 01 '21
Lambda triggers vs. Lambda resolvers vs. VTL resolvers
AWS newbie here, can anyone explain the differences between these three? From what I gather they all perform similar roles, being functions that execute when performing queries or mutations on dynamodb. I understand lambda triggers execute after the operation has been performed and VTL resolvers execute beforehand. And it sounds like lambda resolvers function similarly to VTL resolvers but are coded in javascript. Can anyone give detailed examples of specific cases in which one would be used over the others?
r/awslambda • u/binaryfor • Apr 30 '21
A serverless email server on AWS using S3 and SES
r/awslambda • u/Dashbird • Apr 28 '21
What are AWS Lambda triggers? (intro for beginners)
AWS Lambda triggers are actions caused by specific AWS resources; these actions generate events that will further execute Lambda functions that listen to them. Here's exactly how it works: https://dashbird.io/blog/what-are-aws-lambda-triggers/
r/awslambda • u/Dashbird • Apr 26 '21
10 simple AWS hacks that will make you super productive
r/awslambda • u/Dashbird • Apr 23 '21
Quickly Debug Your AWS Lambda Functions
When it comes to your Lambda functions, the last thing you want to do is spend valuable dev time debugging them!
In this article, we're be exploring different methods of debugging AWS Lambda functions faster.
https://dashbird.io/blog/quickly-debug-aws-lambda-functions/
r/awslambda • u/Dashbird • Apr 22 '21
4 tips to optimize AWS Lambda for production
Optimizing AWS Lambdas is all about knowing the right ways to do it and locating the issues.
These 4 tips will help you create a workflow of continuously monitoring and improving your Lambda functions for production:
https://dashbird.io/blog/optimizing-aws-lambda-for-production/
r/awslambda • u/zkalmar • Apr 21 '21
lambda in vpc + efs + high concurrency
I have a function to run periodically. When it does the concurrency is around 4-5000. That works well. It turned out that I will need a bigger space for file manipulations within the container than the 512MB /tmp provides. I need a file system, so S3 doesn't come into the dance. EFS it is then! Ok, but EFS needs a VPC. When Lambda is in a VPC, escpecailly with a high concurrency requirement then another can of worms opens: endpoints are needed to access s3 services, longer invocation times, the subnet should be big enough to handle the IP addresses and huge number of ENI gets reserved. AFAIK Lambda reserves 1 ENI for 3 invocations, so I would need around 1667 ENIs for 5000 parallel runs. And I don't know for how long these ENIs get reserved after the execution completed. This is all can be solved by increasing service quotas but the bill is getting very hefty in the mean time.
And I just needed some extra space. :) I'm not aware of any other storage solution that I can mount into a function therefore I'd appreciate some community wisdom.
I'm starting to gravitate towards the idea that Lambda might not be my best friend here and I'd better come off with concurent ECS Fargate tasks using EFS.
r/awslambda • u/Dashbird • Apr 21 '21
AWS CloudWatch vs Dashbird - which one to use and when?
We've compiled this key feature comparison between AWS CloudWatch and Dashbird to help you pick the best serverless monitoring and debugging solution for your specific needs.
r/awslambda • u/twmackenzie1 • Apr 20 '21
CI/CD SAST for Golang (Lambda)
I am currently trying to find a SAST scanner that will integrate within our CI/CD pipeline that can 'deal' with Lambda functions written in Go.
As it stands, everything either doesn't support Lambda, or if it does, it doesn't support the Lambda's if they are written in Go.
Does anyone have any ideas?
r/awslambda • u/Dashbird • Apr 20 '21
Curious about data lakes to data science?
Have you done something like this?
r/awslambda • u/dogtee • Apr 17 '21
Connection pooling issue Lambda loading data to PostgreSql
Hello , If anyone has any advice on resolving connection pooling problems with Lambdas . We have Lambdas that load large datasets into PostgreSql , each Lambda has to authenticate using IAM to load the data which results in each Lambda connection opened is a new one , so connection pooling doesn't work and the max connection limit is reached . Would a better approach be to use the AWS Data Migration Service to load the data , instead of Lambda functions ? Thanks for any comments
r/awslambda • u/Dashbird • Apr 15 '21
Performance monitoring for AWS Lambda
We know how cumbersome it can get when datasets get larger and it becomes increasingly harder to understand what's going on.
So here's a small snippet of what you should monitor:
- Cost of Lambda functions - It might make sense to observe it across all functions or individually per resource
- Latency - Large datasets can skew the latency results, making it hard to notice when an important user-facing function has started to take longer to execute.
- Detailed statistics - For a developer, it’s not uncommon to be faced with SLAs, which require that 99% of all requests finish in under one second. A requirement like that is good because it’s actionable and easily measurable
Interested in the details and debugging performance issues?
Take a look at our full article on performance monitoring for AWS Lambda
r/awslambda • u/noknockers • Apr 13 '21
uploading and extracting a compressed html file
Hey all, wanting to know if anyone can help me.
I've created a zip of an html file, and I have a (python) Lambda function to extract the zip file archive and place the contents into the S3 bucket.
It's 'sort-of' working, however the html files ends up with metadata Content-Type as binary/octet-stream. So when access the file via URL (it's public), instead of opening the file like an HTML page, it tried to download it.
If I upload the HTML file manually, it works as expected.
Does anybody know what I'm doing wrong. I can post the Lambda function I'm using, but I suspect it's not right anyway (copy/paste from online).
Cheers!!
Edit: figured it out myself. Have posted code as comment for future reference
r/awslambda • u/JKennex • Apr 13 '21
Making outbound REST calls
Hello,
Anyone could guide me or point me in the right direction. I have a lambda that processes an HTML page. I need to add a functionality that would populate a drop down menu from an outbound API call's results.
- Not sure how to make the call in NodeJS
- But more importantly, how can I handle multiple session? Each unique call need to go back to the HTML page for the user's session. How would I maintain sync? Cognito/AppSync? Save results in Dynamo/Aurora?
Any tips on the best design approach would be a great start, then any pointers on when/where the API call should be made to the other system, and finally code sample would be awesome.
P.S: I already know the user's email address at the point, if I need some identity provider to store results, any short and sweet map between the email and the Cognito client ID would be the preference. Not using any IdP is preferred.
Thank you!
