Chapter 3. Going Further with Terraform

In this chapter, we will cover the following recipes:

  • Handling different environments with Terraform
  • Provisioning a CentOS 7 EC2 instance with Chef using Terraform
  • Using data sources, templates, and local execution
  • Executing remote commands at bootstrap using Terraform
  • Using Docker with Terraform
  • Simulating infrastructure changes using Terraform
  • Teamwork – sharing Terraform infrastructure state
  • Maintaining a clean and standardized Terraform code
  • One Makefile to rule them all
  • Team workflow example
  • Managing GitHub with Terraform
  • External monitoring integration with StatusCake

Introduction

In this chapter, we'll go beyond the essentials of using Terraform we covered in Chapter 2, Provisioning IaaS with Terraform. We'll discover many important techniques to use Terraform in conjunction with other players in the field such as Docker and Chef, how it can be used in multiple environments (such as development/staging/production), how powerful it can be to manage not only infrastructure but many SaaS as well, and how to integrate the tool within a team workflow (sharing, synchronizing, maintaining, harmonizing, and so on). These topics are all equally important, as they will define the quality of our daily work and our ability to interact with other people, services, and systems.

Note

The Terraform version in use for this book is 0.7.3.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.98.14