> For the complete documentation index, see [llms.txt](https://docs.brainboard.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.brainboard.co/cloud-design/right-panel/resources-list/resource-organization.md).

# Resource Organization

## File Assignment

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

* **Default Assignment:** New resources go to <mark style="color:$primary;">**`main.tf`**</mark> by default.
* **Automatic Separation:** Variables go to <mark style="color:$primary;">**`variables.tf`**</mark>, outputs to <mark style="color:$primary;">**`outputs.tf`**</mark>, etc.
* **Manual Assignment:** You can assign resources to different files. To do so:
  * 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](/cloud-design/autogenerated-code/split-code-into-files.md).
