Terraform Cookbook (Early Release)

English | 2022 | ISBN: 9781098108458 | 42 pages | PDF,EPUB | 2.61 MB

Terraform is an infrastructure-as-code application that enables you to provision resources across hundreds of different providers in order to safely and predictably make infrastructure changes and create modules for reusable infrastructure.
If you want to save time and avoid pitfalls when working with Terraform and the HashiCorp Configuration Language (HCL), this easy-to-use cookbook gives you battle-tested, step-by-step recipes to help you deploy with confidence across all of your infrastructure stacks. Each recipe includes self-contained code solutions that you can freely use, along with a discussion of how and why they work.
These practical recipes explain how to

Test your Terraform code
Use public modules to create an AWS VPC or EKS cluster
Lint Terraform with GitHub Actions
Get Terraform code validation with built-in tools or third-party tools
Import pre-existing resources into Terraform state
Create practical modules to share with other operators
Maintain IT infrastructure with less overhead
Use infrastructure as code (IaC) as the lynchpin for your infrastructure management
And much more