mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-06 02:31:35 +03:00
- Add infrastructure.yaml as single source of truth (like values.yaml in Helm) - Make all modules universal (no hardcoded entity names) - Use existing PostgreSQL cluster instead of creating new one - Add yc-database module for working with existing PostgreSQL - Add k8s-secret module with lifecycle.ignore_changes support - Update terragrunt.hcl files to read from infrastructure.yaml - Remove scripts, use native Terragrunt functions (yamldecode)
44 lines
912 B
HCL
44 lines
912 B
HCL
variable "bucket_name" {
|
|
description = "Name of the S3 bucket"
|
|
type = string
|
|
}
|
|
|
|
variable "folder_id" {
|
|
description = "Yandex Cloud folder ID"
|
|
type = string
|
|
}
|
|
|
|
variable "acl" {
|
|
description = "ACL для бакета"
|
|
type = string
|
|
default = "private"
|
|
}
|
|
|
|
variable "versioning_enabled" {
|
|
description = "Enable versioning for the bucket"
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "cors_enabled" {
|
|
description = "Enable CORS for the bucket"
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "cors_config" {
|
|
description = "CORS configuration"
|
|
type = object({
|
|
allowed_headers = list(string)
|
|
allowed_methods = list(string)
|
|
allowed_origins = list(string)
|
|
expose_headers = optional(list(string))
|
|
max_age_seconds = optional(number)
|
|
})
|
|
default = {
|
|
allowed_headers = []
|
|
allowed_methods = []
|
|
allowed_origins = []
|
|
}
|
|
}
|