QuestionQ22Verified/Terraform state managementCopy linkReport a problemAsk AstroTutorSave questionWhat is the purpose of the .terraform directory in a Terraform workspace?AThe directory contains plugins and modules that Terraform downloads during initialization, along with other important information.BThe directory contains the provide credentials and the .tfvars files to prevent them from being committed to version control by accident.CThe directory is where Terraform creates and maintains the state file to track the underlying resources it creates and manages.DThe directory is used to convert and store Terraform configuration files into API calls to communicate with the targeted platform.Show AnswerAnswerExplanationTerraform automatically creates and manages the .terraform directory during initialization to store cached provider plugins and modules, along with workspace and backend-related metadata. Terraform state is stored separately, either in a local state file or in the configured backend.Learn moreInitialize the Terraform working directoryShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion