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.
•
• Type cd < location of Terraform files >
and press the return key to change directory to the location of the Terraform files.
•
• 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.
•
• Type terraform init
and press the return key to initialize Terraform.
•
• Type terraform validate
and press the return key to validate the configuration.
•