An in-depth guide to everything Terraform, complete with newly established best practices and experienced insights into Infrastructure as Code.
About the Author: Robert Hafner has led engineering efforts at numerous startups, including Malwarebytes, Vicarious AI, and Rad AI.
504 Pages
Computers + Internet, Software Development & Engineering
Description
About the Book
An in-depth guide to everything Terraform, complete with newly established best practices and experienced insights into Infrastructure as Code.
Book Synopsis
An in-depth guide to everything Terraform, complete with newly established best practices and experienced insights into Infrastructure as Code. Terraform and its open-source fork OpenTofu's "Infrastructure as Code (IaC)" approach has redefined the way you manage your infrastructure. Its premise is simple-yet-awesome: provision, update, scale, and replicate your infrastructure with the same ease as your application code. In Terraform in Depth, you'll discover absolutely everything you need to automate and manage your infrastructure with just a few lines of code. Inside Terraform in Depth, you'll learn how to: - Understand and write basic Terraform code - Avoid vendor lock-in with the open source OpenTofu - Switch between OpenTofu and Terraform as needed - Construct continuous integration and continuous delivery (CI/CD) pipelines for Terraform - Organize Terraform projects and modules for team-based, production use - Develop and test robust Terraform modules - Create custom Terraform providers Terraform in Depth is fully up to date with the latest versions, standards, and approaches of Terraform and OpenTofu. Complete and comprehensive, its one-stop approach covers everything from Terraform and OpenTofu's absolute basics all the way to advanced production uses. Every technique is illustrated with the kind of real-world examples infrastructure engineers encounter every day. Forewords by Anton Babenko and Christian Mesh. Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications. About the technology Terraform and its open-source fork OpenTofu practically eliminate manual infrastructure configuration. With the Terraform infrastructure management tool, even complex operations that used to require kludgy scripts and time-sucking tinkering can be created, managed, and shared as an organized codebase. Master Terraform, and you'll be able to update a fleet of machines with just a few lines of code. About the bookTerraform in Depth teaches Terraform techniques and Infrastructure as Code (IaC) practices that you can use to deploy and manage applications in the cloud or your on-prem data center. Each chapter includes interesting hands-on examples, such as creating a flexible Terraform module and debugging Terraform plans. You'll quickly learn to define your infrastructure with Terraform. Then, you'll dive into advanced applications, including CI/CD pipelines, creating tools for documentation and security, and Terraform code management. What's inside - Understand and write basic Terraform code - Avoid vendor lock-in with OpenTofu - Construct CI/CD pipelines - Develop and test Terraform modules About the reader For sysadmins, software developers, and cloud engineers famil- iar with the CLI. About the authorRobert Hafner has led engineering efforts at numerous startups, including Malwarebytes, Vicarious AI, and Rad AI. He is currently a Distinguished Engineer at a Fortune 100 Telecom. Table of Contents Part 1 1 A brief overview of Terraform 2 Terraform HCL components 3 Terraform variables and modules 4 Expressions and iterations 5 The Terraform plan Part 2 6 State management 7 Code quality and continuous integration 8 Continuous delivery and deployment 9 Testing and refactoring Part 3 10 Advanced Terraform topics 11 Alternative interfaces 12 Terraform providers
From the Back Cover
From the back cover:
Terraform in Depth teaches you to effectively create and manage your infrastructure as Terraform code. Inside, you'll find essential insights into modern Terraform, including newly established patterns, best practices, and methods for empowering your development team with IaC. Each chapter is fully illustrated with hands-on examples, such as creating a flexible Terraform module to launch EC2 instances and debugging complex Terraform plans.
Starting with the basics of reading and writing Terraform code, you'll quickly be able to define your infrastructure with Terraform and create reusable instances of your projects. Next, you'll dive into Terraform's advanced functions--including CI/CD pipelines, registries to distribute modules, and utilizing built-in tools for documentation, security, and module quality. Finally, you'll learn the secrets of Terraform code management, including rules for refactoring, testing modules, and advanced module patterns.
About the reader:
For sysadmin and cloud engineers familiar with the CLI.
About the Author
Robert Hafner has led engineering efforts at numerous startups, including Malwarebytes, Vicarious AI, and Rad AI. He is currently a Senior Principal Architect at a Fortune 100 Telecom in their Developer Experience organization. In his career, he has built large-scale infrastructure with reliability typically reserved for large organizations, while utilizing small, focused teams. When he's not working with computers, he's creating resin art or trying something new in the kitchen. He lives in Chicago with his amazing wife and two cats.
Dimensions (Overall): 9.2 Inches (H) x 7.3 Inches (W) x 1.1 Inches (D)
Weight: 1.85 Pounds
Suggested Age: 22 Years and Up
Number of Pages: 504
Genre: Computers + Internet
Sub-Genre: Software Development & Engineering
Publisher: Manning Publications
Theme: General
Format: Paperback
Author: Robert Hafner
Language: English
Street Date: April 8, 2025
TCIN: 1009764326
UPC: 9781633438002
Item Number (DPCI): 247-05-8457
Origin: Made in the USA or Imported
If the item details aren’t accurate or complete, we want to know about it.
Shipping details
Estimated ship dimensions: 1.1 inches length x 7.3 inches width x 9.2 inches height
Estimated ship weight: 1.85 pounds
We regret that this item cannot be shipped to PO Boxes.
This item cannot be shipped to the following locations: American Samoa (see also separate entry under AS), Guam (see also separate entry under GU), Northern Mariana Islands, Puerto Rico (see also separate entry under PR), United States Minor Outlying Islands, Virgin Islands, U.S., APO/FPO
Return details
This item can be returned to any Target store or Target.com.
This item must be returned within 90 days of the date it was purchased in store, delivered to the guest, delivered by a Shipt shopper, or picked up by the guest.