Skip to content
@Real-Life-IaC

Real-Life Infrastructure as Code with AWS CDK

Repositories for the book "Real-Life Infrastructure as Code with AWS CDK" by André Sionek

mock-up-book

Hello 👋, welcome!

This organization contains all code repositories for Real-Life Infrastructure as Code with AWS CDK, published by Andre Sionek.

What is this book about?

This book will show you how to build a modern software platform in Python using AWS CDK. Even if you use a different language, you will find this book useful because I focus on architecture patterns rather than syntax details. The book is divided into three parts: Foundations, Real-Life Examples, and Best Practices.

I begin with an introduction to Infrastructure as Code (IaC) CDK to help you quickly learn and refresh some concepts. Then, we dive into a series of real-life implementations of various services and components that you can use to build your software platform. All examples are complete and fully functional, as I have personally deployed them. Finally, I discuss some best practices that I have learned from experience and implemented in the examples. You'll learn:

  • AWS CDK and IaC concepts.
  • Cloud computing concepts and services, including the AWS Well Architected Framework.
  • How to build a cloud-native software platform using CDK.
  • Create functional constructs of code that can build your cloud application.
  • How to create reusable construct libraries.

In most cases, I will not discuss the pros and cons of different approaches or try to convince you to use one tool over another. I assume that you are already familiar with the WHATs and WHYs, and you are reading this book to learn the *HOWs. I will share my opinionated best practices, but keep in mind that opinions can change based on new evidence or different contexts. My opinions may also be completely wrong. Keep this in mind while reading.

Most books focus on syntax or general concepts, and the documentation for both AWS and CDK is excellent. Therefore, I do not believe that I should write a book to discuss those topics. Instead, I focus on the areas that can be challenging, such as connecting and orchestrating different cloud services. The book also includes diagrams and illustrations to help you understand the architecture and how each component fits into the system.

I will share what I believe is the best way to build and manage infrastructure on AWS. In most cases, I will not show alternative implementations, but I hope to provide you with the tools and knowledge to make your own decisions. My goal is to support you in building a robust software platform in AWS by applying the concepts and examples that I share. I also hope to help you avoid some of the mistakes I have made.

By the end of this book, you will have a clear understanding of IaC with CDK and the confidence to build a scalable, secure, and easy-to-maintain software platform in AWS.

🍿 Download a free PDF

Get a free PDF version at no cost on https://real-life-iac.com/!

💝 Did you enjoy the book? Sponsor it!

There are several ways to support this project if you enjoyed the content!

  1. ⭐ Give a star & follow the repos!
  2. ☑️ Follow me on LinkedIn and Medium.
  3. 📗 Buy a paperback or digital version on Amazon, Apple books or Play books.
  4. 💰 Send a one-off or recurring donation via Github Sponsors.
  5. 🇧🇷 If you are in Brazil, you can send a PIX to [email protected], clicking here, or with the QR Code below:

pix-qr-code

🧭 Instructions and Navigation

All code is organized into repositories. There is usually one repo per chapter. You'll find the repository reference at the beginning of each chapter, as shown below:

Chapter

Each repository is independent and "almost" self-sufficient. As explained in the book, there are some dependencies between repositories and you'll need to deploy them in the correct order.

🎫 Issues / Questions

Please open an issue in the respective repository if you have questions or found a problem with the code!

👩‍💻 The Makefile

Each repository contains a Makefile that you can use to initialise the project, install the dependencies and run the tests.

🧙 About the author

Andre Sionek

Medium LinkedIn GitHub Stack Overflow Kaggle Reddit Instagram

I am an experienced Lead Software/Data Engineer focused on Infrastructure as Code, CI/CD, APIs, Software Architecture, and microservices. Instructor of data engineering Bootcamps and a winner of some Kaggle challenges.

I've been working over the past few years to improve the developer experience with better continuous integration, testing and automating all steps of software development. My goal is to give my team 100% confidence that if the tests are passing, then it will work in the cloud/production. I enable them to refactor and constantly improve existing code so that we don't end with skeletons in the closet.

For example, I built the whole infrastructure at one startup using AWS CDK, then automated all processes with GitHub Actions. I also implemented design patterns that made all of our APIs similar to each other, easing the maintenance and implementation. I also have extensive experience with Data Engineering, which makes me think about the software engineering discipline as processes to move (or display) data from one place to another.

My main interests are in creating systems and architectures to deliver data reliably, and to improve the team's productivity by automating any manual processes. I'm a strong Python developer, have great communication skills, and I'm always willing to share some knowledge.

Popular repositories Loading

  1. ch-implementing-cicd ch-implementing-cicd Public

    Code for the Implementing CI/CD chapter

    Python 2

  2. ch-pubsub ch-pubsub Public

    Code for the PubSub Chapter

    Python 2

  3. cdk-constructs cdk-constructs Public

    AWS CDK construct extensions

    Python 1

  4. ch-platform ch-platform Public

    Code for the Platform Repo chapter

    Python 1

  5. ch-frontend ch-frontend Public

    Code for the Frontend Chapter

    TypeScript 1

  6. ch-infrastructure-as-code ch-infrastructure-as-code Public

    Code for the Infrastructure as Code chapter

    Python

Repositories

Showing 10 of 16 repositories
  • ch-microservices Public

    Code for the API Chapter

    Real-Life-IaC/ch-microservices’s past year of commit activity
    Python 0 0 0 1 Updated Dec 26, 2024
  • ch-pubsub Public

    Code for the PubSub Chapter

    Real-Life-IaC/ch-pubsub’s past year of commit activity
    Python 2 0 0 0 Updated Dec 25, 2024
  • ch-frontend Public

    Code for the Frontend Chapter

    Real-Life-IaC/ch-frontend’s past year of commit activity
    TypeScript 1 0 0 0 Updated Dec 25, 2024
  • .github Public

    Real-Life Infrastructure as Code with AWS CDK

    Real-Life-IaC/.github’s past year of commit activity
    0 0 1 0 Updated Dec 25, 2024
  • cdk-constructs Public

    AWS CDK construct extensions

    Real-Life-IaC/cdk-constructs’s past year of commit activity
    Python 1 0 0 0 Updated Dec 17, 2024
  • ch-cdk-custom-resources Public

    Code for the CDK Custom Resources chapter

    Real-Life-IaC/ch-cdk-custom-resources’s past year of commit activity
    Python 0 0 0 0 Updated Dec 15, 2024
  • ch-testing-cdk Public

    Code for the Testing CDK Constructs chapter

    Real-Life-IaC/ch-testing-cdk’s past year of commit activity
    Python 0 0 0 0 Updated Apr 2, 2024
  • ch-infrastructure-as-code Public

    Code for the Infrastructure as Code chapter

    Real-Life-IaC/ch-infrastructure-as-code’s past year of commit activity
    Python 0 0 0 0 Updated Feb 18, 2024
  • ch-platform Public

    Code for the Platform Repo chapter

    Real-Life-IaC/ch-platform’s past year of commit activity
    Python 1 0 0 0 Updated Feb 9, 2024
  • ch-domain-email Public

    Code for the Domain & Email chapter

    Real-Life-IaC/ch-domain-email’s past year of commit activity
    Python 0 0 0 0 Updated Feb 4, 2024

Top languages

Loading…

Most used topics

Loading…