I have two environment variables. One is TF_VAR_UN and another is TF_VAR_PW. Then I have a terraform file that looks like this.
TF_VAR_UN
TF_VAR_PW
res
in order to use a variable it needs to be wrapped with "" for example:
username = "${var.UN}"