terraform validateonlychecks the configuration’s syntax and internal consistency—itdoes notinteract with provider APIs or check if the infrastructure settings are correct.
It ensures that the Terraform code is syntactically correct and follows proper HCL structure.
However, it doesnotverify if resources are valid according to the provider API or if the credentials are correct.
To verify actual infrastructure settings, use terraform plan, which interacts with the provider APIs.
Official Terraform Documentation Reference:
terraform validate - HashiCorp Documentation
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit