Terraform has emerged as 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, and Azure. This hands-on book is the fastest way to get up and running with Terraform.
Gruntwork co-founder Yevgeniy (Jim) Brikman walks you through dozens of code examples that demonstrate how to use Terraform’s simple, declarative programming language to deploy and manage infrastructure with just a few commands. Whether you’re a novice developer, aspiring DevOps engineer, or veteran sysadmin, this book will take you from Terraform basics to running a full tech stack capable of supporting a massive amount of traffic and a large team of developers.
- Compare Terraform to other IAC tools, such as Chef, Puppet, Ansible, and Salt Stack
- Use Terraform to deploy server clusters, load balancers, and databases
- Learn how Terraform manages the state of your infrastructure and how it impacts file layout, isolation, and locking
- Create reusable infrastructure with Terraform modules
- Try out advanced Terraform syntax to implement loops, if-statements, and zero-downtime deployment
- Use Terraform as a team, including best practices for writing, testing, and versioning Terraform code
Table of Contents
1. Why Terraform
- The Rise of DevOps
- What Is Infrastructure as Code?
- Benefits of Infrastructure as Code
- How Terraform Works
- How Terraform Compares to Other Infrastructure as Code Tools
- 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
- Zero-Downtime Deployment
- Terraform Gotchas
6. How to Use Terraform as a Team
- Version Control
- Automated Tests
- Coding Guidelines
- A. Recommended Reading
- Title: Terraform: Up and Running
- Release date: March 2017
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491977071