Difference between revisions of "Terraform workspace"

From wikieduonline
Jump to navigation Jump to search
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
* https://www.terraform.io/docs/cloud/workspaces/index.html
+
<code>[[terraform workspace]]</code> (Mar 2017, [https://www.terraform.io/docs/cloud/workspaces/index.html doc])
  
 +
== Commands ==
 +
{{terraform workspace TOC}}
  
Terraform workspaces allows to have multiple [[state files]] in the same working directory.
+
== Cloud block example ==
 
+
terraform {
 
+
  [[Terraform cloud block|cloud]] {
 
+
    [[organization]] = "my-org"
* <code>[[terraform workspace new]] MY_NEW_WORKSPACE</code>
+
* <code>[[terraform workspace select]]</code>
+
    [[Terraform workspace|workspaces]] {
* <code>[[terraform workspace list]]</code>
+
      name = "my-workspace"
* <code>[[terraform workspace show]]</code>
+
    }
* <code>[[terraform workspace delete]]</code>
+
  }
*<code>[[terraform workspace --help]]</code>
+
}
  
 
== Related terms ==
 
== Related terms ==
 
* [[Terraform Associate]]: Describe the benefits of [[Sentinel]], [[registry]], and [[workspaces]]
 
* [[Terraform Associate]]: Describe the benefits of [[Sentinel]], [[registry]], and [[workspaces]]
 
* [[Terraform backends]]
 
* [[Terraform backends]]
* [[State files]]
+
* [[Terraform state files]]
* [[terraform env]] (deprecated)
 
 
* [[Terraform cloud block]]
 
* [[Terraform cloud block]]
 +
* [[Terraform provider: dns]]
  
 
Multiple workspaces are currently supported by the following [[backends]]:
 
Multiple workspaces are currently supported by the following [[backends]]:
Line 30: Line 32:
 
* Local
 
* Local
 
* [[Manta]]
 
* [[Manta]]
* Remote
+
* [[Terraform remote backend]]
 
* S3
 
* S3
 +
* [[Terraform GoogleWorkspaces]]
 +
 +
== Activities ==
 +
* https://developer.hashicorp.com/terraform/cloud-docs/recommended-practices/part1#about-workspaces
 +
** One Workspace Per Environment Per Terraform Configuration
  
 
== See also ==
 
== See also ==
 
* {{terraform workspace}}
 
* {{terraform workspace}}
* {{terraform cmd}}
+
 
* {{terraform}}
 
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 12:55, 30 October 2024

Advertising: