Variables and Outputs#
input variables
local values
output values
If you’re familiar with traditional programming languages, it can be useful to compare Terraform modules to function definitions:
Input variables are like function arguments. Output values are like function return values. Local values are like a function’s temporary local variables.