Aws
Streaming Lambda responses with API Gateway and Serverless Framework
Streaming support for Lambda Lambda response streaming has been available since 2023, but the main way of supporting it was with Lambda Function URLs which aren't perfect, especially if everything...
read articleGoodbye unnecessary extra attributes: DynamoDB GSIs now support multi-attribute keys
No more extra GSI attributes Recently, AWS announced support for multi-attribute composite keys on DynamoDB Global Secondary Indexes. It's not the most grounbreaking of the releases, but its...
read articleCleaning up our S3 buckets for fun and profit
What you see is not all that you're paying for AWS S3 has at least two cases where it's hard to notice the "objects" for which you're still paying. Let's take a quick look at them! Abandoned...
read articleNew AWS Free Tier setup, finally a way to learn, without worrying about breaking the bank by accident
A long-standing issue with the old Free Tier Recently, AWS released a new, revamped Free Tier model, and it's actually a really nice change for anyone just starting out with AWS. I probably shouldn't...
read articleA few gotchas when running Debezium on MSK Connect
Introduction A while ago, my team replaced our previous data pipeline with a CDC setup based on Amazon MSK Connect running the Debezium connector for PostgreSQL, streaming changes from our RDS...
read articleTIL: Setting multi-line secrets in AWS Secrets Manager
How the AWS Console can quietly mess up formatting of your values Recently I had to store a PGP private key inside a JSON secret in AWS Secrets Manager, as one of the key/value pairs. Sounds pretty...
read articleWait, you can invoke Lambda from a SQL query in RDS PostgreSQL?
Introduction A while ago, when I was exploring various CDC options for our RDS PostgreSQL database, I came across a very surprising capability. Turns out, you can invoke an AWS Lambda function...
read articleStop letting CloudFormation pick gp2 type for your EBS volumes
Old default that costs you money (and performance) In 2020, AWS launched a new, gp3 EBS volume type. It was marketed as a clear no-brainer switch - cheaper, better baseline performance than previous...
read articleTaming wild LLaMas with Amazon Bedrock Guardrails
Introduction Large Language Models (LLMs) are incredibly powerful, but still, to this day, they can also be unpredictable and generate responses including inaccurate or even harmful content. This...
read articleIntroduction to DSPy with Amazon Bedrock
Introduction Earlier this week I had a chance to present this topic at a Silesia AI meetup and I figured it's a great opportunity to turn this topic into a blog post as well. So let's get started! You...
read articleDeployment of Go services to AWS Lambda made easy with `serverless-go-plugin`
Introduction Recently, I started writing a few toy projects with Go and I've realised that Serverless Framework does not offer great support for Go-based services out of the box. I started looking...
read articleTIL: ElastiCache for Redis failover quota
ElastiCache for Redis quota that I did not expect Today's entry will be very short, but I decided to share it on a blog as I did not find any other information about it online. Recently, I've been...
read articleAutomatic detection of recursive loops with AWS Lambda
Introduction You probably saw a lot of horror stories involving a Lambda function going crazy and racking up a giant AWS bill. When I was just starting out, I remember being afraid to make such a...
read articleDeploying FastAPI app to AWS Lambda with Serverless Framework
Introduction If you're like me, from time to time you want to just create a simple API and quickly share it with others. FastAPI is a modern, Python-based web framework that allows to build such APIs...
read articleTIL: How to call IAM-secured AWS Lambda Function URLs with cURL
Introduction In one of my recents posts, I shared how to create AWS Lambda Function URLs secured with AWS IAM. I also showed how we can then call these URLs from Python with proper AWS SigV4...
read articleSecuring your Lambda function URLs with AWS IAM
Introduction For a long time, the only way to expose your Lambda functions over HTTP was to use AWS API Gateway service. As of April, 2022 that is no longer the case, as AWS introduced a new feature...
read articleWhy I believe "serverless" is the future
Introduction Hello, in this blog post I will try to answer the question why I think serverless is the future. I will go over the things that make it great and also mention a few things that are a bit...
read articleSpeed up CDK deployments with this one simple trick!
Introduction (Sorry for the clickbait title, but I just couldn't resist 😅) Recently, when looking at CDK's changelog, I've noticed this gem released in v2.44.0. From my previous work on Serverless...
read articleMaking NumPy (and other problematic Python packages) work seamlessly with AWS Lambda using Serverless Framework
Introduction AWS Lambda is a great solution for running Python code in serverless manner. Unfortunately, managing dependencies for your serverless Python applications can often be a struggle. If...
read article