I tried to make ECS Fargate scale like Lambda. Used a real world scenario, did the math, learned some things.
Spoiler: itβs closeβ¦ but not quite.
rehanvdm.com/blog/scaling...
Posts by Rehan van der Merwe
...
π¦ Clear deployment ordering using waves & stages
It scales from small projects to complex multi-stack setups without the usual CDK pain.
π Blog: rehanvdm.com/blog/aws-cdk...
π Template repo: github.com/rehanvdm/cdk... (click "Use this template" to get started)
Whatβs included:
β‘ pnpm workspaces + Turborepo for fast, cached builds
π§© CDK Express Pipeline β GitHub workflows generated from TypeScript
π Multi-environment support (dev / stage / prod) with type-safe config
π Gitflow branching with automatic deployments & rich CDK diffs on PRs
...
π First blog post of 2026: The CDK Starter v2 is out
Going from a basic CDK setup to production ready infra shouldnβt take hours of research and glue. Iβve updated my AWS CDK Starter to give you a clean, tested foundation so you can focus on building your app.
I could use provisioned concurrency, but then I would need to pay a fixed monthly fee, no thank you.
I have this Tailscalse Lambda Proxy (github.com/rehanvdm/tai...) that needs to be warm.
When Alexa does the OAuth call (for my Home Assistant integration) it has to complete in less than 4.5 seconds and the proxy cold start + first connection to tailscale takes between 5-10+ seconds.
Did you catch Zeno's (Resend CEO) presentation at Supabase Select? Fun fact, he created Dracula while in the hospital π
www.youtube.com/live/GbBGYNN...
It's 2025, and I'm creating a "lambda warmer" function, ugh..
...
π Filter out noisy resources or properties for cleaner diffs
π Multiple assembly support (environment-aware)
π€ Fully compatible with CDK Express Pipeline -> github.com/rehanvdm/cdk...
π Itβs here: Visualize your CDK Diffs directly on your PRs! Powered by the new CDK Express Pipeline GitHub Diff Action -> github.com/rehanvdm/cdk...
Key features:
β‘ Run diffs in parallel to save time
π Collect outputs from multiple stacks and add them neatly to your PR description
...
What is stopping you from having CDK Diffs on Pull Requests like this?
Did you know your Lambdas can be throttled even though they are under the account concurrency? This happens if the sum of their requests per second exceeds 10x the account concurrency.
Always inspiring to see so much curiosity and energy from the next generation of builders!
Earlier this week, I had the great opportunity to speak with students at Tshwane University of Technology (TUT) about AWS Cloud and the Serverless mindset.
We explored real-world use cases, career paths in cloud, and how Serverless is changing the way we build applications.
The CDK Express Pipeline GitHub README was getting out of hand, so I've created a documentation website to organize it better!
Is it perfect? No, but done is better than perfect.
rehanvdm.github.io/cdk-express-...
TIL that when GitHub does a rebase, commits will have different hashes π€¦
Not great when you are promoting assets from lower branches/envs and make use of the commit hash.
docs.github.com/en/repositor...
π Have you seen last week's CDK Express Pipeline changelog? Here's what's new:
β¨ Deployment order now visualized with a Mermaid diagram
β¨ New option to deploy stages sequentially
β¨ Individual stack deployment order now displayed in [brackets]
π Check it out: github.com/rehanvdm/cdk...
#AWS #CDK
Is there something that you have seen or using that is useful?
βοΈ aws-cdk-starterkit β A ready-to-go TypeScript CDK starter kit with GitHub Actions for deployment in under 5 minutes github.com/towardsthecl...
βοΈ cdk-diff-action β GitHub Action to run cdk diff on your PRs to track infrastructure changes github.com/corymhall/cd...
βοΈ cdk-serverless β Toolkit simplifying serverless app development with patterns and live Lambda updates github.com/open-constru...
βοΈ cdk-express-pipeline β CDK-native, build-system-agnostic pipeline library, faster and simpler than CDK Pipelines github.com/rehanvdm/cdk...
βοΈ type-safe-cdk-env β Ensures type-safe and reliable environment variable management in CDK apps github.com/IamFlowZ/typ...
βοΈ @matthewbonig/secret β Construct to create Secrets Manager secrets without unexpectedly recreating them constructs.dev/packages/@ma...
βοΈ iam-floyd β Fluent-interface generator for AWS IAM policy statements, covering all services/actions/conditions github.com/udondan/iam-...
βοΈ deploy-time-build β CDK construct enabling build jobs (frontend, container, SOCI index) at deployment time github.com/tmokmss/depl...
Have you seen these open source CDK gems (no particular order)?
βοΈ cdk-sops-secrets β CDK construct to sync SOPS-encrypted secrets into AWS Secrets Manager github.com/dbsystel/cdk...
Two new features for CDK Express Pipeline.
1. Deploy Stages Sequentially within a Wave
2. The order of operation now indicates what stack will be deployed based on your stack selector (the command in the second screenshot targeted was: `cdk deploy 'Wave2_*'`)
github.com/rehanvdm/cdk...
Key benefits:
β’ Up to 2x faster deployments
β’ Works with any CI/CD system, not just CodePipeline
β’ Can be used locally
β’ No need for long-lived secrets (uses OIDC)
β’ More flexible stack management
Complete with benchmarks, code examples, and comparison of deployment approaches. Check it out!
New blog post π
If you're using AWS CDK Pipelines but struggling with its complexity and slow performance, I've written a detailed guide on migrating to CDK Express Pipeline.
rehanvdm.com/blog/migrate...
#AWS #CDK #DevOps
β¨ Features:
β
Works on any system, your local machine, GitHub Actions, GitLab, etc.
β‘οΈ Fast: deploy stacks in parallel
π¦ Stages and Waves are plain classes, not Constructs, so they donβt mess with nested Construct IDs (unlike CDK Pipelines)
π§βπ» Supports TS and Python CDK
π§ How does it work?
The CDK Express Pipeline leverages the CDK CLI to compute and deploy the correct dependency graph between Waves, Stages, and Stacks using the `.addDependency` method, making it build-system agnostic.