2024-09-24 15:28:19 +02:00
|
|
|
variable "bucket_name" {
|
|
|
|
|
description = "Backup bucket name"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "namespace" {
|
|
|
|
|
description = "Namespace"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "scaleway_project_id" {
|
|
|
|
|
description = "Scaleway project id"
|
|
|
|
|
sensitive = true
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "scaleway_organization_id" {
|
|
|
|
|
description = "Scaleway organization id"
|
|
|
|
|
sensitive = true
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "scaleway_region" {
|
|
|
|
|
description = "Scaleway region"
|
|
|
|
|
default = "fr-par"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "scaleway_zone" {
|
|
|
|
|
default = "fr-par-2"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "cron_schedule" {
|
|
|
|
|
description = "Cronjob schedule for data backups"
|
|
|
|
|
default = "* 2 * * *"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "access_key" {
|
|
|
|
|
description = "Access key"
|
|
|
|
|
sensitive = true
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "secret_key" {
|
|
|
|
|
description = "Secret key"
|
|
|
|
|
sensitive = true
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "app_name" {
|
|
|
|
|
description = "Name of the app to backup"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-12 15:15:16 +01:00
|
|
|
variable "source_folder" {
|
2024-09-24 15:28:19 +02:00
|
|
|
description = "Name of host folder"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-12 15:15:16 +01:00
|
|
|
variable "target_folder" {
|
2024-09-24 15:28:19 +02:00
|
|
|
description = "Backup source location"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "retention_days" {
|
|
|
|
|
description = "backup retention days"
|
|
|
|
|
type = string
|
|
|
|
|
}
|
2025-05-10 19:18:16 +02:00
|
|
|
|
|
|
|
|
variable "tag" {
|
|
|
|
|
description = "Tag to add to the backup"
|
|
|
|
|
type = string
|
|
|
|
|
default = "latest"
|
|
|
|
|
}
|