• ID: TFNFR15 - Category: Code Style - Variable Definition Order
  1. Azure Verified Modules > 
  2. Specifications & Definitions > 
  3. TFNFR15 - Variable Definition Order
  • Category-Testing
  • Class-Pattern
  • Class-Resource
  • Language-Terraform
  • Lifecycle-BAU
  • Persona-Contributor
  • Persona-Owner
  • Severity-SHOULD
  • Type-NonFunctional
  • Validation-TBD

TFNFR15 - Variable Definition Order

ID: TFNFR15 - Category: Code Style - Variable Definition Order

Input variables SHOULD follow this order:

  1. All required fields, in alphabetical order
  2. All optional fields, in alphabetical order

A variable without default value is a required field, otherwise it’s an optional one.

Jan 29, 2025