Validate Terraform Configuration in Terminal on Mac - VicPhanDevOps/mac GitHub Wiki

• Press the command key and spacebar to launch Spotlight Search, type “terminal” and select the “Terminal” application.
image

• Type cd < location of Terraform files > and press the return key to change directory to the location of the Terraform files.
image

• Type ls *.tf and press the return key to list the Terraform files in the directory to sanity check the desired Terraform file is there.
image

• Type terraform init and press the return key to initialize Terraform.
image

• Type terraform validate and press the return key to validate the configuration.
image

⚠️ **GitHub.com Fallback** ⚠️