Book Image

AWS CDK in Practice

By : Mark Avdi, Leo Lam
3.5 (2)
Book Image

AWS CDK in Practice

3.5 (2)
By: Mark Avdi, Leo Lam

Overview of this book

As cloud applications are becoming more complex, multiple tools and services have emerged to cater to the challenges of running reliable solutions. Although infrastructure as code, containers, and orchestration tools, such as Kubernetes, have proved to be efficient in solving these challenges, AWS CDK represents a paradigm shift in building easily developed, extended, and maintained applications. With AWS CDK in Practice, you’ll start by setting up basic day-to-day infrastructure while understanding the new prospects that CDK offers. You’ll learn how to set up pipelines for building CDK applications on the cloud that are long-lasting, agile, and maintainable. You’ll also gain practical knowledge of container-based and serverless application development. Furthermore, you’ll discover how to leverage AWS CDK to build cloud solutions using code instead of configuration files. Finally, you’ll explore current community best practices for solving production issues when dealing with CDK applications. By the end of this book, you’ll have practical knowledge of CDK, and you’ll be able to leverage the power of AWS with code that is simple to write and maintain using AWS CDK.
Table of Contents (17 chapters)
1
Part 1: An Introduction to AWS CDK
4
Part 2: Practical Cloud Development with AWS CDK
9
Part 3: Serverless Development with AWS CDK
12
Part 4: Advanced Architectural Concepts

Part 2: Practical Cloud Development with AWS CDK

Through a simple TODO application, in this part, we will cover the practical aspects of developing cloud applications using AWS Cloud Development Kit (CDK). In Chapter 3, the book covers deploying Docker images on Amazon Elastic Container Service (ECS) and setting up DynamoDB tables and Amazon Simple Storage Service (S3) buckets via CDK. Chapter 4 takes a deep dive into creating hosted zones in Route 53, validating Domain Name System (DNS) for AWS Certificate Manager (ACM) certificates, setting up a Relational Database Service (RDS) MySQL database, and safely storing secrets with Secrets Manager. In Chapter 5, the book teaches you how to set up GitHub and CodePipeline to work together to automate the deployment of stacks in multiple environments. Chapter 6 focuses on testing CDK applications, including different types of tests, effective test-writing strategies, and best practices for integrating testing into the CDK development...