Terraform's documentation outlines a Standard Module Structure.
A minimal module should have a main.tf
, variables.tf
, and outputs.tf
file. Variable and output blocks should be included in the corresponding file.
To fix this issue: - Move blocks to their conventional files as needed - Create empty files even if no variable or output blocks are defined
main.tf
variable "v" {}