Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform

  • 6h 35m
  • Rosemary Wang
  • Manning Publications
  • 2022

Use Infrastructure as Code (IaC) to automate, test, and streamline infrastructure for business-critical systems.

In Infrastructure as Code, Patterns and Practices you will learn how to:

  • Optimize infrastructure for modularity and isolate dependencies
  • Test infrastructure configuration
  • Mitigate, troubleshoot, and isolate failed infrastructure changes
  • Collaborate across teams on infrastructure development
  • Update infrastructure with minimal downtime using blue-green deployments
  • Scale infrastructure systems supporting multiple business units
  • Use patterns for provisioning tools, configuration management, and image building
  • Deliver secure infrastructure configuration to production

Infrastructure as Code, Patterns and Practices teaches you to automate infrastructure by applying changes in a codified manner. You’ll learn how to create, test, and deploy infrastructure components in a way that’s easy to scale and share across an entire organization. The book is full of flexible automation techniques that work whether you’re managing your personal projects or making live network changes across a large enterprise.

A system administrator or infrastructure engineer will learn essential software development practices for managing IaC, while developers will benefit from in-depth coverage of assembling infrastructure as part of DevOps culture. While the patterns and techniques are tool agnostic, you’ll appreciate the easy-to-follow examples in Python and Terraform.

about the technology

Infrastructure as Code is a set of practices and processes for provisioning and maintaining infrastructure using scripts, configuration, or programming languages. With IaC in place, it’s easy to test components, implement features, and scale with minimal downtime. Best of all, since IaC follows good development practices, you can make system-wide changes with just a few code commits!

about the book

Infrastructure as Code, Patterns and Practices teaches flexible techniques for building resilient, scalable infrastructure, including structuring and sharing modules, migrating legacy systems, and more. Learn to build networks, load balancers, and firewalls using Python and Terraform, and confidently update infrastructure while your software is running. You’ll appreciate the expert advice on team collaboration strategies to avoid instability, improve security, and manage costs.

About the Author

Rosemary Wang is an educator, contributor, writer, and speaker. She has worked on many infrastructure as code projects, and open source tools such as Terraform, Vault, and Kubernetes.

In this Book

  • About This Book
  • Introducing Infrastructure as Code
  • Writing Infrastructure as Code
  • Patterns for Infrastructure Modules
  • Patterns for Infrastructure Dependencies
  • Structuring and Sharing Modules
  • Testing
  • Continuous Delivery and Branching Models
  • Security and Compliance
  • Making Changes
  • Refactoring
  • Fixing Failures
  • Cost of Cloud Computing
  • Managing Tools


Rating 4.6 of 45 users Rating 4.6 of 45 users (45)
Rating 4.5 of 29 users Rating 4.5 of 29 users (29)