Difference between revisions of "Terraform workspace"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 11: Line 11:
 
* <code>[[terraform workspace show]]</code>
 
* <code>[[terraform workspace show]]</code>
 
* <code>[[terraform workspace delete]]</code>
 
* <code>[[terraform workspace delete]]</code>
*<code>[[terraform workspace --help]]</code>
+
* <code>[[terraform workspace --help]]</code>
 +
 
 +
== Cloud block example ==
 +
terraform {
 +
  cloud {
 +
    [[organization]] = "my-org"
 +
 +
    [[Terraform workspace|workspaces]] {
 +
      name = "my-workspace"
 +
    }
 +
  }
 +
}
  
 
== Related terms ==
 
== Related terms ==

Revision as of 21:57, 7 June 2022


Terraform workspaces allows to have multiple state files in the same working directory.


Cloud block example

terraform {
  cloud {
    organization = "my-org" 

    workspaces {
      name = "my-workspace"
    }
  }
}

Related terms

Multiple workspaces are currently supported by the following backends:

See also

Advertising: