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

CDK for other platforms

In Chapter 9, when we covered the advantages and disadvantages of ISAA, we promised that we would cover some CDK-like libraries out there that are on the path to promoting openness in the serverless field. Let’s first cover some CDK alternatives.

Pulumi

Pulumi (https://www.pulumi.com/) is the most complete CDK alternative we’ve seen. Its API is slightly different from CDK, but at the end of the day, it produces the same results on AWS. Like CDK, it’s an Apache-licensed open source project with a service, and its cost is based on the number of L2 or L3 components Pulumi manages for you. But it comes with a great advantage: as well as targeting AWS, it targets Google Cloud Platform (GCP), Azure, and Kubernetes. We believe they might even add more cloud providers to the list in the future.

Which came first?

CDK was released in 2018, earlier than Pulumi. But Pulumi as a company was established a year earlier than CDK’s release...