variable "vpc_id" {
  type        = string
  description = "VPC id"
}

variable "name" {
  type        = string
  description = "The name of security group."
  default     = null
}

variable "protocol" {
  type        = string
  description = "Protocol for applying rules. Valid options are tcp or udp"
  default     = "tcp"
}

variable "ingress_template" {
  type        = list(object({ description = string, from_port = number, to_port = number, source_sg_id = string }))
  description = "List of maps that define ingress rules."
}

variable "tags" {
  type        = map(any)
  description = "Tags which will be applied to security group"
  default     = {}
}

variable "sg_description" {
  type        = string
  description = "Description of security group"
  default     = ""
}

