Using Terraform CLI, how do you validate configurration and get any errors in structured JSON format?

Experience Level: Junior
Tags: Terraform

Answer

Run the following command:

terraform validate -json

Comments

No Comments Yet.
Be the first to tell us what you think.
Terraform CLI
Terraform CLI

Are you learning Terraform ? Try our test we designed to help you progress faster.

Test yourself