Building Reliable Serverless Applications with AWS CDK and Testing
How do you test cloud-native services that don't have a local version? Learn a powerful, automated approach using the AWS CDK.
#1about 2 minutes
Overcoming the challenges of container-based infrastructure
Traditional containerized applications face significant hurdles with scalability, operational complexity, and security management.
#2about 2 minutes
Exploring the benefits of a serverless architecture
Serverless computing offers improved scalability, reduced operational overhead, cost-effectiveness, and built-in high availability.
#3about 2 minutes
Defining serverless infrastructure with the AWS CDK
The AWS Cloud Development Kit (CDK) allows you to define cloud infrastructure using familiar programming languages, which then synthesizes into CloudFormation templates.
#4about 4 minutes
Structuring a CDK application with stacks and constructs
A CDK application is organized as a tree of constructs, with stacks serving as the primary deployment units for grouping related resources.
#5about 3 minutes
Unit testing Lambda functions and CDK infrastructure
Test Lambda function logic with standard unit tests and verify CDK-generated templates using fine-grained assertions and snapshot testing.
#6about 4 minutes
Running local integration tests for Lambda and DynamoDB
Validate the interaction between a Lambda function and DynamoDB by running integration tests against a local DynamoDB instance.
#7about 3 minutes
Integration testing for cloud-native managed services
Use the CDK integration test runner to deploy, test, and destroy resources in the cloud for services that lack a local equivalent, like EventBridge Pipes.
#8about 2 minutes
A complete testing strategy for serverless applications
A reliable serverless application requires a multi-layered testing approach, including local unit tests, template assertions, and cloud-based integration tests.
#9about 2 minutes
Q&A: Spying on SDK calls and local DynamoDB setup
Answering audience questions about the costs of spying on SDK calls and the process for setting up a local DynamoDB instance for testing.
Related jobs
Jobs that call for the skills explored in this talk.
Why Attend a Developer Event?Modern software engineering moves too fast for documentation alone. Attending a world-class event is about shifting from tactical execution to strategic leadership.
Skill Diversification: Break out of your specific tech stack to see how the industry...
Daniel Cranney
Dev Digest 214: Claude Is Leaking, GitHub Is Listening & Axios Hacked!Inside last week’s Dev Digest 214 .
🕵️ Claude source code leaked, analysed and re-written in 2 days
🐙 GitHub auto-opts users into feeding their code to train their AI
🌐 Pretext shows how to show complex text rendering in the browser
🤖 How to securin...
Daniel Cranney
Dev Digest 213: Petrol Prices, Agentic Workflows, AI Skills and CODE100!Inside last week’s Dev Digest 213 .
🤫 Don’t tell your LLM that it is an expert
👻 AI generated code is invisible
🔄 Learn about agentic workflows
🛡️ Linux Foundation sponsors fight against AI slop
🦠 1M users infected by Chrome extension
🫃 The why of J...