Raphael Manke

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.

Building Reliable Serverless Applications with AWS CDK and Testing
#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.

Featured Partners

From learning to earning

Jobs that call for the skills explored in this talk.

AWS Architect


Municipality of Madrid, Spain

Software Architecture
Amazon Web Services (AWS)

Devops AWS

Krell Consulting & Training
Municipality of Madrid, Spain

Intermediate
Java
DevOps
Python
Terraform
Continuous Integration
+1

AWS Cloud Engineer DevOps

Interact Consulting Limited
Charing Cross, United Kingdom

60-65K
MySQL
DevOps
Terraform
Kubernetes
+2