Terraform

Terraform

By DeepSource

Output declaration without description TF-L0041

Anti-pattern

Since description is optional value, it is not always necessary to write it. This issue is useful if you want to force the writing of description. Especially, when combined with terraform-docs.

Bad example

output "no_description" {
  value = "value"
}

output "empty_description" {
  value = "value"
  description = ""
}

output "description" {
  value = "value"
  description = "This is description"
}