Terraform

How To Create Reusable Infrastructure with Terraform Modules and Templates — step-by-step Devops tutorial on Progressive Robot

How To Create Reusable Infrastructure with Terraform Modules and Templates

One of the main benefits of Infrastructure as Code is reusing parts of the defined infrastructure. In this tutorial, we’ll consider some of the ways of defining and reusing code in Terraform projects. You’ll reference modules from the Terraform Registry, separate development and production environments using modules, learn about templates and how they are used, and how to specify resource dependencies explicitly using the depends_on meta argument.

Read more
How To Troubleshoot Terraform — step-by-step Devops tutorial on Progressive Robot

How To Troubleshoot Terraform

Similarly to developing with other programming languages and frameworks, setting log levels in Terraform to gain insight into its internal workflows with the necessary verbosity is a feature that can help you when troubleshooting. In this tutorial, you’ll verify that variables always have sensible values and you’ll specify exactly which versions of providers and modules you need to prevent conflicts.

Read more
How To Build a Custom Terraform Module — step-by-step Devops tutorial on Progressive Robot

How To Build a Custom Terraform Module

Terraform modules encapsulate distinct logical components of your infrastructure by grouping their resources together. In this tutorial, you’ll create a Terraform module that will set up multiple Droplets behind a Load Balancer for redundancy. You’ll also use the for_each and count looping features of the Hashicorp Configuration Language (HCL) to deploy multiple customized instances of the module at the same time.

Read more
How To Deploy Multiple Environments in Your Terraform Project Without Duplicating Code — step-by-step Devops tutorial on Progressive Robot

How To Deploy Multiple Environments in Your Terraform Project Without Duplicating Code

Some advanced features Terraform offers become useful when your project grows in size and complexity. It’s possible to alleviate the cost of maintaining complex infrastructure definitions for multiple environments by structuring your code to minimize repetitions and by introducing tool-assisted workflows for easier testing and deployment. In this tutorial, you’ll first deploy multiple infrastructure instances using different workspaces.

Read more
CHAT