Tom
Tom

Reputation: 593

How to debug terraform

Tunning terraform apply is 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?

Upvotes: 7

Views: 29976

Answers (1)

BMW
BMW

Reputation: 45243

  1. if you need enable debug in terraform, add TF_LOG=debug before normal terraform commands in Linux, such as
TF_LOG=debug terraform plan
  1. for your issue, you miss to feed the variable value. try
terraform plan -var domain=xxxx

Upvotes: 16

Related Questions