Infrastructure

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
How To Structure a Terraform Project — step-by-step Web Servers tutorial on Progressive Robot

How To Structure a Terraform Project

Structuring Terraform projects appropriately according to their use cases and perceived complexity is essential to ensure their maintainability and extensibility in day-to-day operations. In this tutorial, you’ll learn about structuring Terraform projects according to their general purpose and complexity. Then, you’ll create a project with a simple structure using the more common features of Terraform: variables, locals, data sources, and provisioners.

Read more
Infrastructure as Code Explained — step-by-step Devops tutorial on Progressive Robot

Infrastructure as Code Explained

In this article, we define Infrastructure as Code (IaC) and explain the benefits of IaC in development and deployment workflows. We also start to learn about Terraform’s role in the IaC workflow and understand “what is ‘state’?” in IaC.

Read more
CHAT