Terraform variables
To declare variables, we will need to create a vars.tf
file with the following data:
variable "subscription_id" { type = string description = "The azure subscription id" } variable "app_id" { type = string description = "The azure service principal appId" } variable "password" { type = string description = "The azure service principal password" sensitive = true } variable "tenant" { type = string description = "The azure tenant id" }
So, we’ve defined four variables here using variable
blocks. Variable blocks typically have a type
and a description
. The type
attribute...