Variables

Variables (Input variables) let you customize behavior without editing the terraform configuration file

2 steps to use variables in Terraform

  1. Define variable and use it in your TF script: 2 steps to use variables in Terraform

  2. Set the variable values when applying the script

3 ways to set values for the defined variables

Real use case with variables

Last updated