What is Terraform Configfile?
Terraform uses configuration files built into the infrastructure in the cloud. The language used to write the terraform configuration file was HashiCrop Configuration Language (HCL). While building the cloud infrastructure terraform will compare the both config file and the state file by which Terraform will build the infrastructure which is not available in the state file.
The file format of the terraform config file was
<name of the file>.tf
It will be like the name of the file and the extension of the file was “.tf”. It is JSON-formatted.terraform
What Is Terraform Lock FIle?
The terraform lock file is named “Terraform. lock.hcl” It will generated by the terraform itself and it will make sure that the same infrastructure will be created if multiple users are working. It serves as a central repository for the particular provider and module versions that you have used in your configuration.