• ID: TFNFR18 - Category: Code Style - Variables with Types
  1. Azure Verified Modules > 
  2. Specifications & Definitions > 
  3. TFNFR18 - Variables with Types
  • Category-CodeStyle
  • Class-Pattern
  • Class-Resource
  • Language-Terraform
  • Lifecycle-BAU
  • Persona-Contributor
  • Persona-Owner
  • Severity-MUST
  • Type-NonFunctional
  • Validation-TBD

TFNFR18 - Variables with Types

ID: TFNFR18 - Category: Code Style - Variables with Types

type MUST be defined for every variable. type SHOULD be as precise as possible, any MAY only be defined with adequate reasons.

  • Use bool instead of string or number for true/false
  • Use string for text
  • Use concrete object instead of map(any)
Jan 29, 2025