Infrastructure

Building a Custom Terraform Module — step-by-step Devops tutorial on Progressive Robot

Building a Custom Terraform Module

Learn how to create a Terraform module for setting up multiple Droplets behind a Load Balancer. Use the `for_each` and `count` features of HCL to deploy multiple instances. Improve infrastructure management and scalability with Terraform.

Read more
Comparing Terraform and Pulumi — step-by-step Kubernetes tutorial on Progressive Robot

Comparing Terraform and Pulumi

Do you want to learn how to build a deployment platform using Infrastructure as Code and a GitOps workflow? Join Kim as she compares and contrasts Terraform and Pulumi, demonstrates how to create a the cloud provider Webserver with Terraform and then Pulumi, and talks through the benefits and drawbacks of each project.

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 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 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
How To Improve Flexibility Using Terraform Variables, Dependencies, and Conditionals — step-by-step Devops tutorial on Progressive Robot

How To Improve Flexibility Using Terraform Variables, Dependencies, and Conditionals

Hashicorp Configuration Language (HCL), which Terraform uses, like other programming languages provides a few different types of loops. In this article, we’ll review the data structures HCL provides, its looping features for resources (the count key, for_each, and for), writing conditionals to handle known and unknown values, as well as explicitly specifying dependency relationships between resources.

Read more
How To Manage Infrastructure Data with Terraform Outputs — step-by-step Devops tutorial on Progressive Robot

How To Manage Infrastructure Data with Terraform Outputs

Terraform outputs are used to extract information about the infrastructure resources from the project state. In this tutorial, you’ll learn about Terraform outputs their syntax and parameters by creating a simple infrastructure that deploys Droplets. You’ll also learn about parsing the outputs programmatically, by converting them to JSON.

Read more
How To Protect Sensitive Data in Terraform — step-by-step Devops tutorial on Progressive Robot

How To Protect Sensitive Data in Terraform

Terraform provides automation to provision your infrastructure in the cloud. To do this, Terraform authenticates with cloud providers to deploy the resources and perform the planned actions. However, the information Terraform needs for authentication is very valuable. In this tutorial, you’ll hide sensitive data in outputs during execution and store your state in a secure cloud object storage, which encrypts data at rest. You’ll also use tfmask to censor values in the Terraform execution.

Read more
CHAT