1. HashiCorp Terraform Documentation
"Input Variables - The description Argument": This source explains the function of the description argument for variables. It states
"This description is displayed to the user in the CLI when they are prompted for a value
and is also used to generate documentation for a module." It makes no mention of the description being stored in the state file.
Source: HashiCorp
Terraform Language Documentation
"Input Variables"
https://developer.hashicorp.com/terraform/language/values/variables#the-description-argument.
2. HashiCorp Terraform Documentation
"Output Values - The description Argument": This document details the description argument for outputs
noting its purpose for human readability. It states
"This description is included in the output of terraform output and can be used to generate documentation for a module." This confirms its role is for user-facing information
not for state management.
Source: HashiCorp
Terraform Language Documentation
"Output Values"
https://developer.hashicorp.com/terraform/language/values/outputs#the-description-argument.
3. HashiCorp Terraform Documentation
"Purpose of Terraform State": This page describes the contents and purpose of the state file. It specifies that state is used for "Mapping to the Real World
" "Metadata
" and "Performance." The metadata mentioned refers to resource dependencies and provider configurations
not descriptive text from variables or outputs. The document states the state file stores "bindings between objects in a remote system and the resource instances declared in your configuration."
Source: HashiCorp
Terraform Language Documentation
"State"
https://developer.hashicorp.com/terraform/language/state#purpose-of-terraform-state.