feat: first version

This commit is contained in:
VC
2025-10-22 15:58:46 +02:00
parent 2a74b6cf6c
commit 5ed688ff16
14 changed files with 214 additions and 2 deletions

34
variables.tf Normal file
View File

@@ -0,0 +1,34 @@
variable "url" {
description = "The URL for Garage Admin API"
type = string
}
variable "scheme" {
description = "HTTP or HTTPS scheme (default to HTTPS)"
type = string
default = "https"
}
variable "keys" {
description = "Complete declarative description of a S3 Garage Key"
type = list(string)
}
variable "buckets" {
description = "Complete declarative description of a S3 Garage Bucket"
type = map(object({
website_access_enabled = optional(bool, false)
aliases = optional(list(string), [])
allowed_keys = map(object({
read = optional(bool, false)
write = optional(bool, false)
owner = optional(bool, false)
}))
}))
}
variable "env" {
description = "The target env for Garage configuration"
type = string
default = "prd"
}