Add instance size options

This commit is contained in:
Ryan Malloy 2024-11-10 04:50:29 -07:00
parent eb22b70eac
commit 73a86b5883
1 changed files with 15 additions and 0 deletions

View File

@ -3,6 +3,21 @@
variable "instance_size" {
description = "Size of instance to create"
default = "t2.micro"
validation {
condition = (
var.instance_size == "t2.micro" ||
var.instance_size == "t3.medium" ||
var.instance_size == "m5.large" ||
var.instance_size == "c5.large" ||
var.instance_size == "c5a.large" ||
var.instance_size == "m5.2xlarge" ||
var.instance_size == "c5.2xlarge" ||
var.instance_size == "m5.4xlarge" ||
var.instance_size == "c5.4xlarge" ||
var.instance_size == "m6i.large"
)
error_message = "Input instance_size must be set to an approved vm instance type."
}
}
variable "vpc_cidr" {