variable "scaleway_project_id" {
  sensitive = true
}

variable "default_ssh_key" {
  type = object({
    name = string
    public_key = string
  })
}


variable "services" {
  type = map(object({
    host = string
    dns = optional(list(object({
      domain = string
      name = optional(string)
      alias = optional(string)
    })))
    backup = optional(list(object({
      name = string
      type = string
    })))
    ports = optional(list(object({
      description = string
      port = string
      protocol = string
      type = string
    })))
    auth = bool
    auth_cert = optional(string)
    auth_redirects = optional(list(string))
    s3 = bool
    database = bool
  }))
}

variable "hosts" {
  type = map(object({
    hostname = string
    rdns = string
    provider = string
    image = optional(string)
    server_type = optional(string)
    datacenter = optional(string)
  }))
}

variable "email_domains" {
  type = set(string)
}