Terraform newbie here. I've a module with variables.tf
which creates a resource 'folder' in Google Cloud. The variables are defined as:
variable "folder_name" {
type = "string"
description = "Name of the folder"
}
The calling function of this module is main.tf.
module "folder" {
source = "../<path>/"
}
When I run 'terraform init', it throws the following error-
$ terraform init Initializing modules... - module.folder - module.project
Error: module "folder": missing required argument "folder_name"
I thought variables can be predetermined in a file or included in the command line options while running 'terraform apply'. I'd prefer CLI options, but then why am I seeing an argument error at the 'init' stage?