terraform-contour-mirror/modules/yc-s3/variables.tf
kochetkov.s be34bc617b refactor: Use unified infrastructure.yaml config file
- 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)
2026-01-19 15:28:39 +03:00

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 = []
}
}