Type Constraints - Simple Types
This lesson will cover the types of variables used in Terraform.
We'll cover the following
So far, we have been setting variables and not specified the type. This means that whatever type you pass to a variable will be the type that the variable assumes. A type constraint allows you to be specific about the type of a variable. There are three simple types:
- string
- number
- bool
Get hands-on with 1400+ tech skills courses.