Skip to content

Commit

Permalink
Update variables.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
DaggupatiPavan authored Oct 24, 2024
1 parent 28b2c72 commit dc0fbaa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dc0fbaa

Please sign in to comment.