Menu

Environment Management with Terraform Workspace: An Application with the LXD Provider
πŸ“°

Environment Management with Terraform Workspace: An Application with the LXD Provider

DEV Community: terraformΒ·murat cabukΒ·1 day ago
#ymxJrQAz
#devtoterraform#devto#dev#terraform#name
Reading 0:00
15s threshold

In this article, we'll examine the Terraform Workspace concept. We'll completely follow the Workspace section on its official page.

For the other articles in the series, you can visit the titles below.

What Is the HashiCorp Configuration Language (HCL)? How Is It Used?

Using LXC, Automation with the Terraform LXD Provider, and Creating a Kubernetes Cluster Using LXC with Terraform

In the Terraform CLI, a "workspace" is a logical structure that lets us keep multiple independent state files within the same configuration directory.

In its simplest form, the recommended usage is when the same resources need to be managed with different variables. To put it a bit more concretely, let's imagine we need to manage test, pre-prod (staging) and prod environments on a cloud provider, for example. In this case, from environment to environment, the individual number of our resources, network settings, cpu, memory, etc. will change, but most of our resources will stay the same.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.