Book Image

Terraform Cookbook - Second Edition

By : Mikael Krief
4.5 (2)
Book Image

Terraform Cookbook - Second Edition

4.5 (2)
By: Mikael Krief

Overview of this book

Imagine effortlessly provisioning complex cloud infrastructure across various cloud platforms, all while ensuring robustness, reusability, and security. Introducing the Terraform Cookbook, Second Edition - your go-to guide for mastering Infrastructure as Code (IaC) effortlessly. This new edition is packed with real-world examples for provisioning robust Cloud infrastructure mainly across Azure but also with a dedicated chapter for AWS and GCP. You will delve into manual and automated testing with Terraform configurations, creating and managing a balanced, efficient, reusable infrastructure with Terraform modules. You will learn how to automate the deployment of Terraform configurations through continuous integration and continuous delivery (CI/CD), unleashing Terraform's full potential. New chapters have been added that describe the use of Terraform for Docker and Kubernetes, and explain how to test Terraform configurations using different tools to check code and security compliance. The book devotes an entire chapter to achieving proficiency in Terraform Cloud, covering troubleshooting strategies for common issues and offering resolutions to frequently encountered errors. Get the insider knowledge to boost productivity with Terraform - the indispensable guide for anyone adopting Infrastructure as Code solutions.
Table of Contents (20 chapters)
16
Other Books You May Enjoy
17
Index

Downloading and installing Terraform on Windows manually

In this recipe, we will learn how to download and install Terraform on a local machine running a Windows operating system.

Getting ready

To complete this recipe, the only prerequisite is that you’re on a Windows operating system.

How to do it…

Perform the following steps:

  1. Open Windows File Explorer. Choose a location and create a folder called Terraform. We will use this to store the Terraform binary; for example, C:\Terraform.
  2. Launch a web browser and go to https://developer.hashicorp.com/terraform/downloads.
  3. Click on the Windows tab and then click on the Amd64 link, which targets the Terraform ZIP package for the Windows 64-bit operating system. The ZIP package will be downloaded locally.

    Une image contenant texte  Description générée automatiquement

    Figure 1.1: Download Windows Terraform binary

  4. Unzip the content of the downloaded ZIP file into the Terraform folder that we created in Step 1:
Une image contenant texte  Description générée automatiquement

Figure...