TFNFR41 - Output Definition Order

ID: TFNFR41 - Category: Code Style - Output Definition Order

output blocks in a module SHOULD be ordered alphabetically by output name. This applies to outputs.tf and every outputs.<topic>.tf file in the root module and each submodule.

output "id" {
  value = azapi_resource.this.id
}

output "name" {
  value = azapi_resource.this.name
}

MAPOTF’s sort_outputs behavior implements this convention. See MAPOTF and standard Terraform TFLint coverage.