'How to debug terraform
I was trying to test running a terraform module from my company.
Then running terraform apply was giving the following error.
╷
│ Error: Missing required argument
│
│ The argument "domain" is required, but was not set.
I searched all my project folders including the files in .terraform folder, but I could not locate that variable.
How do I know which terraform script was giving that error?
Solution 1:[1]
- if you need enable debug in terraform, add
TF_LOG=debugbefore normal terraform commands in Linux, such as
TF_LOG=debug terraform plan
- for your issue, you miss to feed the variable value. try
terraform plan -var domain=xxxx
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
