variable "name" { description = "Base name for the bucket and key. The account ID is added to keep the bucket name unique." type = string default = "tfstate" validation { condition = can(regex("^[a-z0-9-]{3,30}$", var.name)) error_message = "name must be 3-30 characters of lowercase letters, digits, or hyphens." } } variable "keep_old_versions_days" { description = "How long a replaced state version is kept before it is deleted. Long enough to notice a bad apply and roll it back." type = number default = 90 } 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 = {} }