Book description
Updated for Terraform 0.12!
A hands-on, introductory book about managing infrastructure with HashiCorp's Terraform tool. Start small and then build on what you learn to scale up to complex infrastructure. Written for both developers and sysadmins. Focuses on how to build, test and run infrastructure and applications with Terraform and integration with tools like Consul.
The book contains:
Chapter 1: An Introduction to Terraform
Chapter 2: Installing Terraform
Chapter 3: Building our first application
Chapter 4: Provisioning and Terraform
Chapter 5: Collaborating with Terraform
Chapter 6: Building a multi-environment architecture
Chapter 7: Infrastructure testing
Table of contents
- The Terraform Book
- 1 Introduction
-
2 Installing and introducing Terraform
- 2.1 Installing Terraform
-
2.2 Getting started with Terraform
- 2.2.1 Adding some configuration
- 2.2.2 Terraform configuration files
- 2.2.3 Setting up Amazon Web Services
- 2.2.4 Our first configuration file
- 2.2.5 Building our first resource
- 2.2.6 Terraform state
- 2.2.7 Showing our resource
- 2.2.8 Adding a second resource
- 2.2.9 Outputting plans
- 2.2.10 Targeting resources
- 2.2.11 Failed plans
- 2.2.12 Showing all the resources
- 2.2.13 Viewing the Terraform graph
- 2.2.14 Destroying infrastructure
- 2.3 Summary
-
3 Building an application stack with Terraform
- 3.1 Our application stack
- 3.2 Parameterizing our configuration
- 3.3 Starting our stack
- 3.4 First resources
- 3.5 Modules
- 3.6 Using our module
- 3.7 Counts and counting
- 3.8 Provisioning our stack
- 3.9 Finishing up our stack
- 3.10 Committing our configuration
- 3.11 Validating and formatting
- 3.12 Initializing Terraform
- 3.13 Planning our stack
- 3.14 Applying our stack
- 3.15 Graphing our stack
- 3.16 Seeing the results
- 3.17 Destroying the web stack resources
- 3.18 Summary
- 4 Provisioning with Terraform
- 5 Collaborating with Terraform
- 6 Building a multi-environment architecture
-
7 Infrastructure testing
-
7.1 Test Kitchen
- 7.1.1 InSpec
- 7.1.2 How Test Kitchen works
- 7.1.3 Prerequisites
- 7.1.4 Creating a test configuration
- 7.1.5 Creating our first control
- 7.1.6 Decorating controls with metadata
- 7.1.7 Adding another test to our control
- 7.1.8 Setting up a Test Kitchen instance
- 7.1.9 Running the controls
- 7.1.10 Adding a new control
- 7.1.11 Building custom InSpec resources
- 7.2 Alternative infrastructure testing frameworks
- 7.3 Summary
-
7.1 Test Kitchen
Product information
- Title: The Terraform Book
- Author(s):
- Release date: November 2016
- Publisher(s): Turnbull Press
- ISBN: None
You might also like
book
Terraform in Action
Use Terraform to programmatically create, test, and manage infrastructure using the efficient infrastructure-as-code approach. In Terraform …
book
Terraform Cookbook
Cloud services and SaaS software permeate every company's IT landscape, requiring a shift from manually provisioned …
book
Terraform Cookbook
Discover how to manage and scale your infrastructure using Infrastructure as Code (IaC) with Terraform Key …
book
Terraform: Up & Running, 2nd Edition
Terraform has become a key player in the DevOps world for defining, launching, and managing infrastructure …