Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Cian's review
  • Loading branch information
mtojek committed Feb 16, 2024
commit 6981b835c25198e8b04991295eaf7c83c1b86f5f
6 changes: 4 additions & 2 deletions docs/templates/resource-ordering.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ user experience. This page outlines how resources can be aligned using the
`order` Terraform property or inherit the natural order from the file.

The resource with the lower `order` is presented before the one with greater
value. A missing `order` property defaults to 0.
value. A missing `order` property defaults to 0. If two resources have the same
`order` property, the resources will be ordered by property `name` (or `key`).

## Using `order` property

### Coder parameters

The `order` property of `coder_parameter` resource allows specifying the order
of parameters in UI forms. For example:
of parameters in UI forms. In the below example, `project_id` will appear
_before_ `account_id`:

```hcl
data "coder_parameter" "project_id" {
Expand Down