diff --git a/variables.tf b/variables.tf index 38a1b5b..3b3c939 100644 --- a/variables.tf +++ b/variables.tf @@ -122,8 +122,14 @@ variable "instance_type" { description = "The type of instance to start" type = string default = "t3.micro" + + validation { + condition = contains(["micro", "medium", "large", "nano"], var.instance_type) + error_message = "Instance type must be one of: micro, medium, large, nano." + } } + variable "instance_tags" { description = "Additional tags for the instance" type = map(string)