Book description
Terraform has become a key player in the DevOps world for defining, launching, and managing infrastructure as code (IaC) across a variety of cloud and virtualization platforms, including AWS, Google Cloud, Azure, and more. This hands-on third edition, expanded and thoroughly updated for version 1.0 and beyond, shows you the fastest way to get up and running with Terraform.
Gruntwork cofounder Yevgeniy (Jim) Brikman takes you through code examples that demonstrate Terraform's simple, declarative programming language for deploying and managing infrastructure with a few commands. Veteran sysadmins, DevOps engineers, and novice developers will quickly go from Terraform basics to running a full stack that can support a massive amount of traffic and a large team of developers.
- Compare Terraform with Chef, Puppet, Ansible, CloudFormation, and Pulumi
- Deploy servers, load balancers, and databases
- Create reusable infrastructure with Terraform modules
- Test your Terraform modules with static analysis, unit tests, and integration tests
- Configure CI/CD pipelines for both your apps and infrastructure code
- Use advanced Terraform syntax for loops, conditionals, and zero-downtime deployment
- Get up to speed on Terraform 0.13 to 1.0 and beyond
- Work with multiple clouds and providers (including Kubernetes!)
Publisher resources
Table of contents
-
Preface
- Who Should Read This Book
- Why I Wrote This Book
- What You Will Find in This Book
- Changes from the Second Edition to the Third Edition
- Changes from the First Edition to the Second Edition
- What You Wonât Find in This Book
- Open Source Code Examples
- Using the Code Examples
- Conventions Used in This Book
- OâReilly Online Learning
- How to Contact OâReilly Media
- Acknowledgments
-
1. Why Terraform
- What Is DevOps?
- What Is Infrastructure as Code?
- What Are the Benefits of Infrastructure as Code?
- How Does Terraform Work?
-
How Does Terraform Compare to Other IaC Tools?
- Configuration Management Versus Provisioning
- Mutable Infrastructure Versus Immutable Infrastructure
- Procedural Language Versus Declarative Language
- General-Purpose Language Versus Domain-Specific Language
- Master Versus Masterless
- Agent Versus Agentless
- Paid Versus Free Offering
- Large Community Versus Small Community
- Mature Versus Cutting Edge
- Use of Multiple Tools Together
- Conclusion
- 2. Getting Started with Terraform
- 3. How to Manage Terraform State
- 4. How to Create Reusable Infrastructure with Terraform Modules
- 5. Terraform Tips and Tricks: Loops, If-Statements, Deployment, and Gotchas
- 6. Managing Secrets with Terraform
- 7. Working with Multiple Providers
- 8. Production-Grade Terraform Code
- 9. How to Test Terraform Code
- 10. How to Use Terraform as a Team
- A. Recommended Reading
- Index
- About the Author
Product information
- Title: Terraform: Up and Running, 3rd Edition
- Author(s):
- Release date: September 2022
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098116743
You might also like
book
Kubernetes: Up and Running, 3rd Edition
This third edition comes with a dedicated playlist of interactive Katacoda labs mapped to each section …
video
Kubernetes for the Absolute Beginners - Hands-On
Starting from the fundamental concept of containers, the course gradually unfolds into a comprehensive guide on …
book
System Design on AWS
Enterprises building complex and large-scale applications in the cloud face multiple challenges. From figuring out the …
book
Kubernetes Patterns, 2nd Edition
This second edition comes with a dedicated playlist of interactive Katacoda labs mapped to sections of …