Configuring a Terraform component
To configure a Terraform component, specify a repo, the required configuration values, and the version of Terraform to run it with.components/<your-component>.toml
public_repo block) or a private GitHub repo (using a connected_repo block).
Read more about VCS configuration here.
You can also put the Terraform source inside of the same repo as your app config, and point to it.
If you include the Terraform source in the app config repo, push the source along with the rest of the repo. A branch run rebuilds a component when its config changes, so a push that changes only the Terraform source does not rebuild it. After that push, run
nuon branches trigger --branch-id <branch> --force, or build the component manually in the dashboard or CLI.Configuring Terraform Vars
You can configure terraform variables for a component using component variables. These variables can access inputs, other Components, the sandbox, and details on the install itself using templating.components/<your-component>.toml