Resource Organization
File Assignment
Resources are assigned to Terraform files based on:
Default Assignment: New resources go to
main.tfby default.Automatic Separation: Variables go to
variables.tf, outputs tooutputs.tf, 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.
Last updated