variable "name" { description = "Prefix for everything this creates." type = string default = "brokered-shell" } variable "vpc_id" { description = "VPC for the no-inbound security group." type = string } variable "access_tag" { description = "Tag key and value an instance must carry before operators may open a session on it." type = object({ key = string, value = string }) default = { key = "shell-access", value = "brokered" } } variable "idle_timeout_minutes" { description = "Sessions end after this many idle minutes." type = number default = 15 } variable "max_session_minutes" { description = "Sessions end after this many minutes whatever is happening." type = number default = 120 } variable "retention_days" { description = "How long transcripts are kept, in days. CloudWatch Logs accepts only its own list of periods, so the value must be one of them." type = number default = 400 validation { condition = contains([1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653], var.retention_days) error_message = "retention_days must be a period CloudWatch Logs accepts, such as 90, 365, 400, or 731." } } variable "owner" { description = "Tag contract: accountable team." type = string default = "platform-engineering" } variable "environment" { description = "Tag contract: environment." type = string default = "prod" } variable "extra_tags" { description = "Additional tags merged over the contract." type = map(string) default = {} }