/Terraform-Cookbook

Terraform Cookbook by Packt

Primary LanguageHCLMIT LicenseMIT

Terraform Cookbook

Terraform Cookbook

This is the code repository for Terraform Cookbook, published by Packt.

Efficiently define, launch, and manage Infrastructure as Code across various cloud platforms

What is this book about?

HashiCorp Configuration Language (HCL) has changed how we define and provision a data center infrastructure with the launch of Terraform—one of the most popular and powerful products for building Infrastructure as Code. This practical guide will show you how to leverage HashiCorp's Terraform tool to manage a complex infrastructure with ease.

This book covers the following exciting features:

  • Understand how to install Terraform for local development
  • Get to grips with writing Terraform configuration for infrastructure provisioning
  • Use Terraform for advanced infrastructure use cases
  • Understand how to write and use Terraform modules
  • Discover how to use Terraform for Azure infrastructure provisioning

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

if (test expression)
{
  Statement upon condition is true
}

Following is what you need for this book: This book is for developers, operators, and DevOps engineers looking to improve their workflow and use Infrastructure as Code. Experience with Microsoft Azure, Jenkins, shell scripting, and DevOps practices is required to get the most out of this Terraform book.

With the following software and hardware list you can run all code files present in the book (Chapter 1-8).

Software and Hardware List

Chapter Software required OS required
1-8 Terraform version >= 12.0 Windows, macOS, and Linux (Any)
1-8 Terraform Cloud NA
1-8 Azure Windows, macOS, and Linux (Any)
1-8 PowerShell scripting Windows/Linux
1-8 Shell scripting Linux
1-8 Azure CLI Windows, macOS, and Linux (Any)
1-8 Azure DevOps NA
1-8 GitHub NA
1-8 Git Windows, macOS, and Linux (Any)
1-8 Ruby version 2.6 Windows, macOS, and Linux (Any)
1-8 Docker Windows, macOS, and Linux (Any)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Code in Action

Click on the following link to see the Code in Action:

YouTube

Related products

Get to Know the Author

Mikael Krief lives in France and works as a DevOps engineer. He came to believe that Infrastructure as Code is a fundamental practice in DevOps culture. He is therefore interested in HashiCorp products and specializes in the use of Terraform in several company contexts. He loves to share his passion through various communities, such as the HashiCorp User Groups. In 2019, he wrote the book Learning DevOps (Packt Publishing), and he also contributes to many public projects, writes blogs and other books, and speaks at conferences. For all his contributions and passion, he was nominated and selected as a HashiCorp Ambassador, and he has been awarded the Microsoft Most Valuable Professional (MVP) award for 5 years.