Difference between revisions of "Terraform workspaces"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
Terraform workspaces allows to have multiple [[state files]] in the same working directory to manage multiple distinct sets of infrastructure resources.
+
Terraform workspaces (Mar 2017, previously known as State Environments ) allows to have multiple [[state files]] in the same working directory to manage multiple distinct sets of infrastructure resources.
 
* https://www.terraform.io/language/state/workspaces
 
* https://www.terraform.io/language/state/workspaces
  

Revision as of 08:27, 24 January 2023

Terraform workspaces (Mar 2017, previously known as State Environments ) allows to have multiple state files in the same working directory to manage multiple distinct sets of infrastructure resources.

Certain backends support multiple named workspaces allowing multiple states to be associated with a single configuration.

Usage scenarios

  • To create a parallel, distinct copy of a set of infrastructure in order to test a set of changes before modifying the main production infrastructure.
  • Non-default workspaces are often related to feature branches in version control.

Commands

Related

See also

Advertising: