#Lambda
Hadn't thought of using EFS as a shared cache.. #lambda #awscomsum
Bundling code running in AWS Lambda has really poor downsides.
First downside is a build step. Second debugging is harder.
Yes sometimes sourcemaps can work, with additional setup, but that's also obviously slower than not needing to. Aside the fact they do not always work.
Better: not needing to bundle. We've found we don't need to with http://arc.codes
1/2 #aws #lambda #serverless #esm
【Python】Switchbot Hub2の気温・湿度をCloudWatchに定期的に送信する【AWS Lamba】
https://qiita.com/tippy/items/adc3c53d7928e60c5162?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#qiita #Python #AWS #CloudWatch #lambda #SwitchBot
Handling Credentials Generically in a Custom Lambda Runtime
~~
ACM.307 Also, threat modeling use of local credentials in relation to the LastPass breach
~~
#lambda #credentials #runtime #testing #attack #threatmodel #lastpass #breach
@Ryanbigg What's the context? Arrays have indexes, not keys, but could contain hashes. Assuming all hashes:
```
[{a: 1}, {b: 2}, {c: 3}].
map &:keys
```
Maybe :index, :at, or :each_with_index depending on why you're calling :[] on Array elements. Otherwise:
```
key = :b
[{a: 1}, {b: 4}].filter { _1[key] }
# => [{:b=>4}]
```
My personal favorite, with #lambda helper:
```
k = "key"
try_key = ->(e) { e[k] rescue nil }
[0, {"lock"=>1}, {"key"=>2}].
map(&try_key)
# => [nil, nil, 2]
```
A Generic Bash Error Handler For a Bash Custom Lambda Runtime Interface
~~
ACM.319 Handling multiple errors and different types of errors
~~
#lambda #errorhandling #bash #AWS
Serverless Days Tokyo 2023に参加してきました!(前編)
https://qiita.com/minorun365/items/b03fed43fabc245fad38?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#qiita #AWS #DynamoDB #lambda #serverless #TiDB
Je crois que deux et deux sont quatre
Onc il eut, à son jeu libéral,
en art seul penchant
et aux dieux dédain.
Il eut ans,
et à ce regard,
temps
différant,
en arc se pencha.
En air
eau à crêts mêla
feu
et aux cieux versa
le
sang.
Ergs, aas
à mer cédaient.
Eaux à prés jetaient
plein
vrac.
Et as,
à mer entrant,
à ce néant
va.
Eut art.
A des géants
le trépas.
Et a
de
grès
le repas.
#lambda https://taliporefleuri.fr/2023/09/21/je-crois-que-deux-et-deux-sont-quatre/
Adding a #Secret to A Lambda Deployment
~~
ACM.315 Creating a Lambda-Specific Secret #Resource #Policy
~~
I’m in the process of creating a single set of templates for common #Lambda deployments. Much more in the works. Check it out.
https://medium.com/cloud-security/adding-a-secret-to-a-lambda-deployment-bb55f76558b3
This was a fun #python script I had to work on this week. How to chunk up a Python list to process smaller chunks of the data at a time.
I was running a #lambda function in #AWS to remove users from the suppression list and hitting a rate limit.
https://claytonerrington.com/blog/list-throttling-with-python
#100DaysToOffload number 45!
Aaaand it's done! Yesterday I had the great opportunity to talk about some of my passions in the AWS on .NET Show, hosted by @thecodetraveler and @fbouteruche
https://twitch.tv/videos/1928935
The stream is a mix of my #opensource work, some pointers about my recent talks and a showcase of the #NServiceBus #Lambda and #DynamoDB integration using #SQS as a transport.
Troubleshooting Lambda Networking
~~
ACM.308 Validating private network access and troubleshooting issues access from a private VPC through a NAT
~~
#lambda #networking #vpc #troubleshooting #aws #cloud #security
https://medium.com/cloud-security/troubleshooting-lambda-networking-c6a957746407
Networking is amazing. Charlie Ede from the LEGO Group pointed out something that I did not notice.
The cold start of #Rust doubled the time recently.
I think it is related to the last version of aws-config from the SDK.
Who can tell?

Using the Lambda Runtime Interface Emulator With a Custom Bash Runtime
~~
ACM.307 Revisiting the RIE with a revamped Arm container for Lambda
~~
Run #bash in a #container in an #AWS #Lambda function and test it on your #localhost
Adding Error Handling to Bash Custom Lambda Runtime
~~
ACM.306 Using Bash trap to capture and handle errors in bash scripts
~~
#lambda #bash #runtime #trap
https://medium.com/cloud-security/adding-error-handling-to-bash-custom-lambda-runtime-29d3f1c94441
Custom Bash Runtime for Lambda Container
~~
ACM.305 Using AWS base images for a container that runs a custom Lambda runtime
~~
#bash #container #lambda #runtime
https://medium.com/cloud-security/custom-bash-runtime-for-lambda-container-bec64ab33582
Custom Lambda Runtimes
~~
ACM.304 Overview of a custom Lambda runtime to execute bash scripts deployed in a container in Lambda
~~
#Lambda #custom #runtime #bash #shell #script #container
https://medium.com/cloud-security/custom-lambda-runtimes-6da9977eabfe
Why Do I Need a Language Specific Runtime in a Lambda Container?
~~
ACM.303 Why doesn’t Lambda just run any OCI Compliant container?
~~
#Lambda #Function #Code #Container #Runtime
Testing Lambda Functions Locally Outside of Lambda
~~
ACM.302 Using the AWS Lambda Runtime Interface Emulator (RIE) and how system architectures affect it
~~
#Lambda #AWS #Runtime #Emulator
https://medium.com/cloud-security/testing-lambda-functions-locally-outside-of-lambda-f7126d20421a
I think the biggest thing I'm looking for in my next job is #AWSLambda
I'm getting so spoiled by #serverless and I am sick of docker containers.
I love the local dev experience of https://arc.codes it would be awesome to build something large scale with it!
Fixing Application Errors Inside a Container Used By a Lambda Function and Redeploying It
~~
ACM.301 The benefits and risks of redeploying a container used by a Lambda function
~~
#lambda #container #serverless #security #cloud #appsec
Great fun yesterday at the #AWS User Group #Dublin (which is now 10 y/o BTW 🤯).
I had the pleasure to present an updated version of my talk about writing #Lambda functions in #Rust.
Here are the slides: https://loige.link/lambda-rust
Lambda Architecture vs. Container Architecture
~~
ACM.300 Resolving errors caused by architecture mismatch
~~
#lambda #container #architecture #arm64 #x86
https://medium.com/cloud-security/lambda-architecture-vs-container-architecture-e3256879a6d6
Testing a Lambda function with the AWS Console and Enabling CloudWatch Logs and Metrics
~~
ACM.299 Restricting Lambda functions to write to their own CloudWatch logs groups
~~
#aws #lambda #serverless #logs #metrics #cloudwatch
Deploying a Lambda running a Container using CloudFormation
~~
ACM.298 Leveraging ECR and our prior VPC with NAT deployment
~~
#Lambda #container #cloudformation #absrraction #microtemplates
#Othello front end served by #Apache, written in #JavaScript with #Phaser 3 game engine, back end served with #Flask (soon AWS #Lambda) and written in #Python. There's a lot going on but it sorta works. This proves my idea to offload the processing to a remote back end driving a thin client works.
It plays terribly at the moment, but it's good enough to work on the UX.
Deploying Python Lambda Functions With Layers Using TypeScript CDK https://link.medium.com/2SVy1JubXCb
Нарешті закінчив з автоматичними повідомленнями про старт деплою в #AWS #ElasticBeanstalk. Клієнт постійно питає: чому щось не працює, а виявляється, що кожен раз іде деплой від розробників, про який ніхто не знає. Звʼязка получилась така:
#EventBridge -> #SNS Topic -> #Lambda, а далі через визов на #Slack вебхук, щоб сповістити канал про старт деплоя.
К досвіду додався ще один сервіс, з яким раніше не працював (EventBridge)
Zahlreiche neue Einheiten und ein Spezialevent ab heute in Pokémon Masters EX
Mit Teamwork kann ab heute eine kostenlose neue Einheit erhalten werden.
Zur News: https://news.bisafans.de/9963
#Smartphone #Event #Übersicht #App #Giovanni #Tickets #Missionen #Einheiten #PokémonMastersEX #GSuche #Gefährtenpaare #Atlas #Athena #Lance #Lambda

Allow Lambda to Pull Containers From Elastic Container Registry
~~
ACM.295 Add a policy to ECR to allow lambda to access images with a few caveats
~~
Hit unexpected issues due to renaming issues in CF.
~~
#lambda #container #ecr #policy #cloudformation
AWS Lambda Error Handling: Everything You Need to Know by @theburningmonk
I've got a #serverless function in #lambda happily ticking over. The idea that it lets you focus on business functionality and let the cloud do the rest... it depends. Sometimes it is #YakShaving all the way down. I got an e-mail that some lambda is using an old version of node. It appears it is not one that I wrote, but something that is used to rotate logs. Then I find that https://docs.aws.amazon.com/cdk/api/v1/docs/aws-apigateway-readme.html CDK v2 is now the new normal. Was looking forward to that when developing. But not now :-).
🔮 From $erverless to Elixir
➥ Cory O'Daniel
「 This post is not a critique of NodeJS, Lambda, or the Serverless movement, but a word of caution about how pricey it can become if your service ends up going webscale™ 」
https://medium.com/coryodaniel/from-erverless-to-elixir-48752db4d7bc
#FreeBSD can now boot in 25 milliseconds https://www.theregister.com/2023/08/29/freebsd_boots_in_25ms/ cc @cperciva #lambda #aws
RT @TheDonRaab@Twitter.com
Did you know that I became dependent on lambdas in Java in 2004? Unfortunately, Java didn't get concise lambda expressions until 2014.
In the blog linked below, I share a bit of history you might not have heard before. Enjoy! 🙏
👇👇👇
https://donraab.medium.com/my-ten-year-quest-for-concise-lambda-expressions-in-java-39fde576b950
#java #lambda #streams #collections #EclipseCollections #hofor
We are ready to go live with the Dublin Rust meetup! 🦀
The event will be live-streamed, so grab a beer and join us at https://www.youtube.com/watch?v=eaJmActWqYo for some #Serverless, #Lambda and, of course, lots of #Rust!
🍻
✨ Writing and deploying Rust Lambda function to AWS: Image glitch as a service (author : @virtualkirill )
https://www.kirillvasiltsov.com/writing/write-deploy-lambda-image-glitch/
I still see the odd #Lambda around, here and there, from time to time.
The longest-running #LGBT radio show in #Dallas (the US?) is #LambdaWeekly. #LambdaLegal was important to the #US Marriage Equality fight. The #LambdaLiteraryReview is still out there reviewing #Queer books. Etc…
But yeah, for the most part, at least in my little corner of the universe, it’s been eclipsed by other symbols, such as rainbows and pink triangles.
In the 1970s, there was an effort to make the Greek letter lambda the symbol of gay liberation. “Universally recognized" is overselling it quite a bit – it was known in some circles, mostly in the USA.
#vintageAd #gay #lambda
Have you ever considered using #Rust for your #AWS #Lambda functions?
Here's why you should: https://loige.co/why-you-should-consider-rust-for-your-lambdas (new blog post)
Put together an annotated more complete multi binary AWS sam example which is closer to my standard Go project structure. This deploys to provided.al2 runtime using arm64, and custom compile flags to trim down the binary. #aws #lambda #golang https://github.com/wolfeidau/sam-golang-multi-lambda
🖥️
How do you deploy AWS Lambda apps:
✨ Have you heard of Denial of Wallet Attacks !
👉 (D) DoS in a Serverless world
👉 Inflict maximum financial damages
A quick dive into Y combinators and how to make a recursion without referencing a function by its name.
I am excited to have found this book. It is called 'Let Over Lambda' and it's all about macros.
I already discovered a lot of interesting stuff in the first chapters. For example, TIL how to use 'labels' to define local scoped recursive functions: I'm in awe. Now I am trying to understand the implications of it.
I've already hit #AWS #Lambda's default 5s timeout fetching just two #mastodon timelines with https://schizo.social. I'm going to need a more clever solution for making multiple API requests to build a single page. Maybe prefetching, maybe spawning a background process and updating the UI via a #webSocket when they complete? I'm trying to keep it as client-side #javaScript free as I can, but waiting on multiple masto servers just isn't going to work...
This is pretty rough, deprecating go1.x and forcing customers over to provided.al2 which is pretty annoying with its constraint on handler being `bootstrap`. For those using a zip file with more than one command in it this is a pain.. 👎😞 #lambda #AWS https://aws.amazon.com/blogs/compute/migrating-aws-lambda-functions-from-the-go1-x-runtime-to-the-custom-runtime-on-amazon-linux-2/
A quick note about how I read a random skull doodle from a 76MB file in an #AWS #Lambda and return it in ~150ms
https://tbeseda.com/blog/get-a-random-record-from-json
Have you tried anything similar? What do you think of this approach?
Also, I inadvertently made a public JSON API for skull doodles https://tbeseda.com/api/skull
I wrote a new AWS Lambda function to pull my TV and movie watch history and ratings from Trakt into my Now page. Still on the lookout for bugs, but it seems to be mostly working as expected. There’ll be some junk and duplicates on my Now page for a little while as I test and settle into a new routine.
https://blog.mihobu.lol/2023/07/automating-my-now-page-update-4
@xavier @nomeata #AWS #Lambda are based on a lightweight #AmazonLinux image and then #Layers added on top of that. Maybe those are just #Amazon terms for what is essentially the same as #Docker?
https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
How does #OpenFaas do it?
This week (Wed @ 8:30PM ET) on @vBrownBag:
We're starting our new IaC series with Sr. Cloud Engineer (& co-host of The Teaching Python podcast) Sean Tibor:
"How to Kick Ass with #Python, #Lambda, and #Terraform"!
So suit up, register here & join us live: https://bit.ly/3VMeCD3
I just finished an overly-documented Rust-powered #lambda calculus interpreter:
https://github.com/orsinium-labs/rlci
4 years ago, I got into lambda calculus by watching [1] and implementing [2] on #python the Lambda Calculus workshop by @dabeaz, and I still think this is the most mind-blowing thing I know (on par with category theory). Learning #Rust was an excellent excuse to dive into it again.
[1]: https://www.youtube.com/watch?v=pkCLMl0e_0k
[2]: https://github.com/orsinium-labs/python-lambda-calculus
Daniel Vassallo, in his book ”AWS The Good Parts”:
"Treating Lambda as a general-purpose host for your applications is risky. It might look compelling at first -no servers to manage, no operating system to worry about, and no costs when unused-but Lambda's limitations are insidious hidden risks that typically reveal themselves once your application evolves into something bigger."
#aws #lambda
My new favorite AWS tool is the AWS lambda runtime interface emulator, in short it allows me to run and test lambdas locally using CURL commands! Showcases how handy it is to package lambdas as containers as well. 😎 🌤️ https://github.com/aws/aws-lambda-runtime-interface-emulator #AWS #lambda
Alright I made a thing. Calling it “Obelisk” because it allows a single Lambda function to route complex request paths with `find-my-way` (Fastify’s router). Basically just an adapter so it’s super fast and small.
The demo site explains more: https://jxrrngx355.execute-api.us-west-2.amazonaws.com/
If nothing else, read my fevered disclaimers from earlier (still kicking COVID).
Source code is lacking because I need to clean it up a bit.
Also, I'm still questioning whether it's a good idea 🫠
#NodeJS #Lambda
Anyone knows how to run a background service in an #AWS #Lambda deployed as a #Docker #container?
The #AWS #Lambda logo will never stop being the Half Life logo in my head, sorry Amazon #jsday2023
Response streaming for #AWS #Lambda is great, because it makes sending large responses to the client. This can remove the need to use S3 as the download location for dynamically generated payloads.
https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/
I spent entirely too long benchmarking Neon #Postgres serverless driver in a #Lambda. Pretty compelling stuff!
Tested against #DynamoDB (with @arcserverless) and added my thoughts here: https://craft-86c.begin.app/
Refresh a couple times after seeing a really sleepy result. It's the Neon boot time.
Going to try PlanetScale on Friday.
dear #aws #serverless folk:
all the "do a thing with #lambda" tutorials and docs i'm finding assume you're setting up an #apiGateway in front of your function. if i'm using lambda to push an external event into another external api (so aws doesn't own the authentication), is there a reason to not just use the raw function url and skip the gateway? it seems very faffy and i'm not sure i need what it buys me.
Did AWS really think rolling out custom Lambda runtimes absolves them of the promise of managed functions-as-a-service?
Scary if true!
https://www.lastweekinaws.com/blog/AWS-is-Asleep-at-the-Lambda-Wheel/
#serverless #aws #lambda #computering #devops #javascript #python #go #ruby #lastweekinaws
It‘s extremely cool to see #Swift resultBuilders being used not only for SwiftUI and HTML output but also to describe #AWS #Lambda deployments. Amazing work by @sebsto
https://github.com/swift-server/swift-aws-lambda-runtime/pull/291
I just had a flash of insight into container (and #AWS #lambda) "layers". If I think about them as image editing "layers" (and ever further back, as cel layers for hand-drawn animation https://conceptartempire.com/cel-animation/) it all makes sense to me in a way it hadn't before.
Photoshop layers, but for the file system.
One of the more obscure cloud #webdev terms is "utilization". The idea used to be that we needed more servers than generally necessary to accommodate spikey traffic.
This meant in traditional architectures the majority of your cloud bill was for idle under-utilized compute resources.
With #aws #lambda we pay for compute on demand by the millisecond. Which us #serverless folks call 💯% utilization.
Lernen Sie Googles Version von ChatGPT kennen ‼️🚨
LaMDA (Language Model for Dialog Applications) ist ein LLM, das sich über jedes Thema unterhalten und auf alle Ihre Fragen antworten kann.
Der Zugang erfolgt über die „AI Test Kitchen“. Jetzt in die Warteliste eintragen ⬇️
https://aitestkitchen.withgoogle.com/
this week during our wild DNS migration we had to run npm on 300+ #lambda functions from four years ago while upgrading from node10 to latest.
four. years. ago. …and everything worked like charm.
why? because we avoid transpiling dialects and stick to standard #js.
standards last. userland dialects…not so much.
Fascinating deep dive into #AWS #Lambda internals.
https://aws.amazon.com/blogs/compute/aws-lambda-resilience-under-the-hood/