# Resource Organization

## File Assignment

Resources are assigned to <mark style="color:$primary;">Terraform</mark> files based on:

* **Default Assignment:** New resources go to `main.tf` by default.
* **Automatic Separation:** Variables go to `variables.tf`, outputs to `outputs.tf`, etc.
* **Manual Assignment:** You can assign resources to different files. To do so:&#x20;
  * Right-click the resource in the diagram.
  * Select **"Move to file"**.
  * Choose an existing file or create a new one.

Learn more in [Split Code into Files](https://docs.brainboard.co/cloud-design/autogenerated-code/split-code-into-files).
