Notifications
Clear all
Topic starter
You have created two workspaces PROD and DEV. You have switched to DEV and provisioned DEV infrastructure from this workspace. Where is your state file stored?
- A . terraform.d
B. terraform.tfstate
C. terraform.tfstate.DEV
D. terraform.tfstate.d
Suggested Answer: D
Explanation:
Terraform stores the workspace states in a directory called terraform.tfstate.d. This directory should be treated similarly to default workspace state file terraform.tfstate main.tf
provider.tf
terraform.tfstate.d
DEV
terraform.tfstate # DEV workspace state file
PROD
terraform.tfstate # PROD workspace state file terraform.tfvars # Default workspace state file variables.tf
Explanation:
Terraform stores the workspace states in a directory called terraform.tfstate.d. This directory should be treated similarly to default workspace state file terraform.tfstate main.tf
provider.tf
terraform.tfstate.d
DEV
terraform.tfstate # DEV workspace state file
PROD
terraform.tfstate # PROD workspace state file terraform.tfvars # Default workspace state file variables.tf
Posted : 12/02/2023 2:31 am