Terraform is an infrastructure as code software from HashiCorp. Terraform enables you to safely and predictably create, change, and improve infrastructure. It is an open source tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
You can Use Terraform to create resources across all major infrastructure providers (AWS, GCP, Azure, OpenStack, VMware, and more). Terraform allows you to effortlessly combine high-level system providers. It's definitely a useful tool if you work with multiple cloud providers or hybrid cloud. In this book I will only cover AWS, but the same best practices can be applied to various providers.
When you use Terraform, you can reuse your template to set up your resources consistently
and repeatedly. Just describe your resources once and then provision the same resources over and over
in multiple accounts and regions. This book will show you how to write a reusable Terraform template for your cloud infrastructure.
The aim of this book is to help you get started with Terraform in an easy way. With detailed steps, complete codes, command outputs and screen captures from AWS console, I hope you will get better understanding of how things work.
The example project will help you grasp the concepts quickly. You will be able to build cloud infrastructure for a multi-tier WordPress site using Terraform in no time. Throughout the book you will get your hands dirty writing Terraform template and deploying resources. By the end of reading this book, I hope that you will master Terraform.