0

I am making use of modules. And this is the structure of my files - modules

main.tf  
|--module1
|     |--main.tf
|     |--outputs.tf
|     |--variables.tf
|
|--module2
|     |--main.tf
|     |--outputs.tf
|     |--variables.tf

I have a main.tf file which runs two modules. When i run terraform output command it is expected to return the outputs instead it returns - "The state file either has no outputs defined, or all the defined outputs are empty. Please define an output in your configuration with the output keyword and run terraform refresh for it to become available. If you are using interpolation, please verify the interpolated value is not empty"

I would want to know why is this happening?

SiddhiMorajkar
  • 395
  • 4
  • 7
  • 18

0 Answers0