9. Terraform Variables
Input Variables
variable "subnet_prefix" {
description = "cidr block for the subnet"
default = "10.0.2.0/24"
type = string
}Usage
subnet_prefix = "10.0.1.0/24" avail_zone = "eu-west-1"
Local Variables
Types
Primitive Types
Complex Types
Sensitive Data
Mark variables as sensitive
Pass to terraform apply with
Can also use external secret store
Last updated