#Terraform Beginnings
1 messages · Page 1 of 1 (latest)
It looks like you're trying to reference the name of the same resource that hasn't been named yet?
Thanks, I ended up realizing that you are correct, I was trying to reference variables in the module itself.
I do have one more question, I am wondering how to pass .tfvars variable definitions to modules? It seems I have to repeat myself in defining variables in both the root directory and the module directory?
Yep, you have to repeat it
In the module you define a variable that it needs, then in the root dir if you need it as a variable, you define it as a variable there too