In terraform, can i create a new workspace of a folder that does not exist in the main…
- User
In terraform, can i create a new workspace of a folder that does not exist in the main branch of a repo
- Assistant
No, you can't. In Terraform, a workspace is designed to manage a set of infrastructure resources. It does not directly relate to folders or directories in a version control system like Git.
When you create a new workspace in Terraform, it doesn't create any new directories or files. Instead, it creates a new state file that is used to track the infrastructure resources that belong to that workspace.
If you are trying to manage different sets of resources that are defined in different directories or branches of a Git repository, you would typically do that by running terraform commands in those directories or checking out those branches before running terraform commands.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.