variable "env" {
type = string
description = "The name of the SDLC environment. e.g. dev, stage, prod."
validation {
condition = contains(["dev", "stage", "prod"], var.env)
error_message = "`var.env` must be a pre-approved environment name."
}
}
New in 0.13 - INPUT VALIDATION
Whats New- Input Validation
0.13 - Exercises!
Develop Intelligence - Mock Terraform Class - 0.13