Terraform output has no description

Explain the meaning of the value the module returns.

Description

An output block’s description tells module users what the returned value represents.

Potential impact

Callers can pass the wrong value to another module or have to look it up during handover.

Remediation

Describe each output’s meaning and intended use. Include units or format when callers need them to interpret the value.

Examples

The description identifies aws_eks_cluster.main.name as the created EKS cluster’s name. The resource definition is omitted.

Before

hcl
output "cluster_name" {
  value = aws_eks_cluster.main.name
}

After

hcl
output "cluster_name" {
  value       = aws_eks_cluster.main.name
  description = "Name of the created EKS cluster"
}

References