Explore how to provision, manage, and scale your infrastructure using Infrastructure as Code (IaC) with Terraform Purchase of the print or Kindle book includes a free PDF eBook
Key Features
Get up and running with Terraform (v1+) CLI and automate infrastructure provisioning
Discover how to deploy Kubernetes resources with Terraform
Become a Terraform troubleshooting expert for streamlined infrastructure management and minimal downtime
Book Description
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.
What you will learn
Use Terraform to build and run cloud and Kubernetes infrastructure using IaC best practices
Adapt the Terraform command line adapted to appropriate use cases
Automate the deployment of Terraform confi guration with CI/CD
Discover manipulation of the Terraform state by adding or removing resources
Explore Terraform for Docker and Kubernetes deployment, advanced topics on GitOps practices, and Cloud Development Kit (CDK)
Add and apply test code and compliance security in Terraform configuration
Debug and troubleshoot common Terraform errors
Who this book is for
This book is for developers, operators, and DevOps engineers looking to improve their workflow and use Infrastructure as Code. If you find yourself spending too much time on manual infrastructure provisioning, struggling to manage complex deployments across environments, or facing unexpected downtime due to infrastructure issues then this book is meant for you. Experience with Microsoft Azure, Jenkins, shell scripting, and DevOps practices is required to get the most out of this Terraform book.
Table of Contents
Setting Up the Terraform Environment
Writing Terraform Configurations
Scaling Your Infrastructure with Terraform
Using Terraform with External Data
Managing Terraform State
Applying a Basic Terraform Workflow
Sharing Terraform Configuration with Modules
Provisioning Azure Infrastructure with Terraform
Provisioning Simple AWS and GCP Infrastructure Using Terraform
Using Terraform for Docker and Kubernetes Deployment
Running Test and Compliance Security on Terraform Configuration
Deep-Diving into Terraform
Automating Terraform Execution in a CI/CD Pipeline
Using Terraform Cloud to Improve Team Collaboration