No, Terraform uses .tfvars files to read and assign variable values to the corresponding variables in the Terraform code. If a variable is defined in both the .tfvars file and the Terraform code, the .tfvars value will take precedence. However, if a variable is not defined in the .tfvars file, Terraform will use the default value in the code or prompt the user to enter a value during runtime if no default is set.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-06-15 08:34:22 +0000
Seen: 18 times
Last updated: Jun 15 '23
What is the process for uploading files to Azure Storage using Terraform in Azure Pipeline?
How can two GCP instances with static IPs be created using Terraform?
How can ec2 instances be created in every availability zone using Terraform?
How to use Terraform to make an S3 Bucket accessible to the public?
How can one transform the source code of an Azure Data Factory into a Terraform script?
How can changes be disregarded in the lifecycle of Terraform?