Variables
This lesson will address Terraform variables and their uses.
We'll cover the following...
We'll cover the following...
Terraform variables
A variable in Terraform is something that can be set at runtime. It allows you to vary what Terraform will do by passing in or using a dynamic value.
Our first Variable
Let’s dive into an example of how to use variables so we can learn how they work:
You declare a variable by using the keyword variable, and then specify the identifier for the variable in quotes. We are using "bucket_name" as the identifier. Inside the variable block, we add a description to describe to the user what ...