Skip to content

alextanhongpin/terraform-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-workspace

Understanding how workspaces work in terraform, and how to isolate dev, test, stage and prod environment with it.

Create

# Creates a dev workspace
$ terraform workspace new dev

# Creates a prod workspace
$ terraform workspace new prod

Switch

# Select the dev workspace
$ terraform workspace select dev

# Select the prod workspace
$ terraform workspace select prod

List

$ terraform workspace list

Show

$ terraform workspace show

Releases

No releases published

Packages

No packages published