Difference between revisions of ".tfvars"

From wikieduonline
Jump to navigation Jump to search
(Created page with " * {{tf_files}}")
 
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* https://www.terraform.io/docs/language/values/variables.html#variable-definitions-tfvars-files
  
 +
[[terraform.tfvars]]
  
 +
[[terraform plan]] -var-file="your_file.tfvars"
 +
[[terraform apply]] -var-file="your_file.tfvars"
  
 +
your_var = "your-value"
 +
 +
[[vpc_id]] = "your_vpn_id"
 +
 +
subnets = [
 +
  "subnet-02173da6287aa8766",
 +
  "subnet-0355bd5e1338d9077",
 +
  "subnet-03a8593192e921d88",
 +
]
 +
 +
[[tags]] = {
 +
  env          = "sandbox",
 +
  created-by  = "your_name"
 +
  triggered-by = "terraform"
 +
  project      = "your_project"
 +
  ou          = "your_OU"
 +
}
 +
 +
 +
 +
== Related ==
 +
* [[Terraform variables]]
 +
* <code>[[.tf]]</code>
 +
* <code>[[variables.tf]]</code>
 +
* <code>[[variable.tfvars]]</code>
 +
* <code>[[var.]]</code>
 +
 +
== See also ==
 +
* {{Terraform variables}}
 
* {{tf_files}}
 
* {{tf_files}}
 +
 +
[[Category:Terraform]]

Latest revision as of 05:27, 13 September 2022

terraform.tfvars

terraform plan -var-file="your_file.tfvars"
terraform apply -var-file="your_file.tfvars"
your_var = "your-value"
vpc_id = "your_vpn_id"
subnets = [
  "subnet-02173da6287aa8766",
  "subnet-0355bd5e1338d9077",
  "subnet-03a8593192e921d88",
]
tags = {
  env          = "sandbox",
  created-by   = "your_name"
  triggered-by = "terraform"
  project      = "your_project"
  ou           = "your_OU"
}


Related[edit]

See also[edit]

Advertising: