IT 3110 : DevOps Automation

Terraform 2


Terraform tfstate


Terraform tfstate

Storing locally is great if you are just running as a personal project, but if you are sharing with team members, it doesn’t work well. For teams:


Terraform tfstate

You should store your terraform file in git, but not the tfstate file. Problems:


Terraform tfstate

We have been using the local backend, but for teams and shared access, we should use a remote backend. (i.e. S3 bucket)

Solves the problems from the previous slide:


Terraform Isolation

How do you use workspaces?

Creates and switches you. Look at tfstate dir it creates