Using terraform 0.12.28,
I have an environment variable called TF_VAR_my_var, it has a value, terraform should be able to read this.
I have a module with a var.tf file which includes:
variable "my_var" {}
In that same module, I use the above variable as such inside a string
"value": "${var.my_var}"
However I get the following message:
on main.tf line 60, in module "ecs":
60: module "ecs" {
The argument "my_var" is required, but no definition was found.
What am I doing wrong?