infrastructure/modules/infrastructure/variables.tf

60 lines
1.1 KiB
HCL

variable "admin_email" {}
variable "aws_region" {}
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 = optional(string)
s3_buckets = optional(list(string))
s3_public = bool
database = bool
storage_box = optional(bool, false)
}))
}
variable "hosts" {
type = map(object({
hostname = string
rdns = string
provider = string
ephemeral = optional(bool, false)
image = optional(string)
server_type = optional(string)
location = optional(string)
}))
}
variable "email_domains" {
type = set(string)
}