Workspaces | Terraform Tutorial | #16

Publié le: 02 juillet 2020
sur la chaîne: Will Brock
52,308
915

Workspaces allow the use of the same configuration but having separate state backends for each workspace. One use case is having production and dev workspaces. This allows the same setup for both environments but each with their own state. When working in the dev workspace you can ensure that you are only modifying that infrastructure and not production. This is great for testing changes without affecting other environments.

In this video tutorial I'll create a couple examples of working with dev and production workspaces in Terraform.

Use the CLI to create, update, switch, list, show and delete workspaces
Use dev.tfvars and prod.tfvars files to set different variables depending on the workspace
Examine the different state between workspaces
Access the current workspace in config files with terraform.workspace

Course Examples:
https://github.com/WillBrock/terrafor...

Documentation:
https://www.terraform.io/docs/state/w...


Sur cette page du site, vous pouvez voir la vidéo en ligne Workspaces | Terraform Tutorial | #16 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Will Brock 02 juillet 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 52,308 fois et il a aimé 915 téléspectateurs. Bon visionnage!