
Terraform in Depth: Infrastructure as Code with Terraform and Opentofu
Paperback
General ComputersProgrammingSystem Administration
ISBN13: 9781633438002
Publisher: Manning Publications
Published: Apr 8 2025
Pages: 504
Weight: 1.85
Height: 1.10 Width: 7.30 Depth: 9.20
Language: English
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
- 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 book
Terraform 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 author
Robert 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
Also in
Programming
The Pragmatic Programmer: Your Journey to Mastery, 20th Anniversary Edition
Thomas, David
Hunt, Andrew
Hardcover
The Legend of Zelda(tm) Tears of the Kingdom - The Complete Official Guide: Collector's Edition
Piggyback
Hardcover
Cracking the Coding Interview: 189 Programming Questions and Solutions
McDowell, Gayle Laakmann
Paperback
The Legend of Zelda(tm) Tears of the Kingdom - The Complete Official Guide: Standard Edition
Piggyback
Paperback
Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming
Matthes, Eric
Paperback
Accelerate: The Science of Lean Software and DevOps: Building and Scaling High Performing Technology Organizations
Humble, Jez
Kim, Gene
Forsgren Phd, Nicole
Paperback
Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and C: Fourth Edition
Zhu, Yifeng
Paperback
SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL
Shields, Walter
Hardcover
Learning Php, MySQL & JavaScript: A Step-By-Step Guide to Creating Dynamic Websites
Nixon, Robin
Paperback
The Staff Engineer's Path: A Guide for Individual Contributors Navigating Growth and Change
Reilly, Tanya
Paperback
The Manager's Path: A Guide for Tech Leaders Navigating Growth and Change
Fournier, Camille
Paperback
Building AI-Powered Products: The Essential Guide to AI and Genai Product Management
Nika, Marily
Paperback
Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners
Sweigart, Al
Paperback
The Official Raspberry Pi Handbook 2025: Projects, Tutorials, Interviews, and Reviews from the Magpi Magazine
Makers of the Magpi Magazine, The
Paperback
Head First JavaScript Programming: A Learner's Guide to Modern JavaScript
Robson, Elisabeth
Freeman, Eric
Paperback
This Is Service Design Doing: Applying Service Design Thinking in the Real World
Lawrence, Adam
Hormess, Markus Edgar
Stickdorn, Marc
Paperback
The Devops Handbook, 2nd Edition: How to Create World-Class Agility, Reliability, & Security in Technology Organizations
Debois, Patrick
Kim, Gene
Humble, Jez
Paperback
Learning Web Design: A Beginner's Guide to Html, Css, Javascript, and Web Graphics
Robbins, Jennifer
Paperback
Head First Design Patterns: Building Extensible and Maintainable Object-Oriented Software
Robson, Elisabeth
Freeman, Eric
Paperback
Software Architecture: The Hard Parts: Modern Trade-Off Analyses for Distributed Architectures
Richards, Mark
Sadalage, Pramod
Ford, Neal
Paperback
Serious Cryptography, 2nd Edition: A Practical Introduction to Modern Encryption
Aumasson, Jean-Philippe
Paperback
Spies, Lies, and Algorithms: The History and Future of American Intelligence
Zegart, Amy B.
Paperback
Make: Electronics: Learning by Discovery: A Hands-On Primer for the New Electronics Enthusiast
Platt, Charles
Paperback
Pro C# 10 with .Net 6: Foundational Principles and Practices in Programming
Troelsen, Andrew
Japikse, Phil
Paperback
Design Patterns: Elements of Reusable Object-Oriented Software
Helm, Richard
Johnson, Ralph
Gamma, Erich
Hardcover
iPhone 8 Guide: The iPhone Manual for Beginners, Seniors & for All iPhone Users
Brave, Dale
Paperback
Aprenda Visual Basic (Vba) Y Macros Para Excel: Más de 100 ejercicios resueltos, macros y juegos, para desarrollar tus habilidades de programación
Vidal Bosch, Josep Ramon
Paperback
Head First C#: A Learner's Guide to Real-World Programming with C# and .Net
Stellman, Andrew
Greene, Jennifer
Paperback
Concrete Mathematics: A Foundation for Computer Science
Patashnik, Oren
Knuth, Donald
Graham, Ronald
Hardcover
Learn OpenGL: Learn modern OpenGL graphics programming in a step-by-step fashion.
de Vries, Joey
Paperback
Leading Quality: How Great Leaders Deliver High Quality Software and Accelerate Growth
Cummings -. John, Ronald
Peer, Owais
Paperback
Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and C: Third Edition
Zhu, Yifeng
Paperback
Living a Jewish Life, Revised and Updated: Jewish Traditions, Customs, and Values for Today's Families
Cooper, Howard
Diamant, Anita
Paperback
Data Visualization with Microsoft Power Bi: How to Design Savvy Dashboards
Zelensky, Maxim
Kolokolov, Alex
Paperback
Gestión práctica de proyectos con Scrum: Desarrollo de software ágil para el Scrum Master
Martel, Antonio
Paperback
Video Game of the Year: A Year-By-Year Guide to the Best, Boldest, and Most Bizarre Games from Every Year Since 1977
Minor, Jordan
Paperback
Electronic Music and Sound Design - Theory and Practice with Max 8 - Volume 1 (Fourth Edition)
Giri, Maurizio
Cipriani, Alessandro
Paperback
Dark Souls: Beyond the Grave Volume 1: Demon's Souls -- Dark Souls -- Dark Souls II
Romieu, Sylvain
Mecheri, Damien
Hardcover
Computer Science Distilled: Learn the Art of Solving Computational Problems
Ferreira Filho, Wladston
Paperback
Electronic Music and Sound Design - Theory and Practice with Max 8 - volume 3
Giri, Maurizio
Cipriani, Alessandro
Paperback
Linux Basics for Hackers: Getting Started with Networking, Scripting, and Security in Kali
Occupytheweb
Paperback
Modern Software Engineering: Doing What Works to Build Better Software Faster
Farley, David
Paperback
The Digital Photography Book: The Step-By-Step Secrets for How to Make Your Photos Look Like the Pros'!
Kelby, Scott
Paperback
Electronic Music and Sound Design - Theory and Practice with Max 8 - Volume 2 (Third Edition)
Cipriani, Alessandro
Giri, Maurizio
Paperback
Simple SysML for Beginners: Using CATIA No Magic Products
Casse, Olivier
Braun, Frank
Hetherington, David
Paperback
JavaScript Crash Course: A Hands-On, Project-Based Introduction to Programming
Morgan, Nick
Paperback
SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL
Shields, Walter
Paperback
Python Machine Learning By Example - Fourth Edition: Unlock machine learning best practices with real-world use cases
Liu, Yuxi (Hayden)
Paperback
Software Wasteland: How the Application-Centric Mindset is Hobbling our Enterprises
McComb, Dave
Paperback
Prompt Engineering for Llms: The Art and Science of Building Large Language Model-Based Applications
Ziegler, Albert
Berryman, John
Paperback
Javascript: The Definitive Guide: Master the World's Most-Used Programming Language
Flanagan, David
Paperback
Workday Gold: A Collection of Keith Bitikofer's #WorkdayTips Focused on Software Functionality 2021-2023
Bitikofer, Keith
Paperback
Dark Souls: Beyond the Grave Volume 2: Bloodborne €" Dark Souls III
Romieu, Sylvain
Mecheri, Damien
Hardcover
Designing Distributed Systems: Patterns and Paradigms for Scalable, Reliable Systems Using Kubernetes
Burns, Brendan
Paperback
Head First Software Architecture: A Learner's Guide to Architectural Thinking
Richards, Mark
Ford, Neal
Gandhi, Raju
Paperback