feat: first version
This commit is contained in:
34
variables.tf
Normal file
34
variables.tf
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user