From 1bba8d0d53a3d480bf57670a3994e41269e2834f Mon Sep 17 00:00:00 2001 From: "kochetkov.s" Date: Mon, 19 Jan 2026 15:15:29 +0300 Subject: [PATCH] fix: Correct CORS syntax in yc-s3 module --- modules/yc-s3/main.tf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/yc-s3/main.tf b/modules/yc-s3/main.tf index 5fd2130..6ecc921 100644 --- a/modules/yc-s3/main.tf +++ b/modules/yc-s3/main.tf @@ -27,12 +27,12 @@ resource "yandex_storage_bucket" "pulse" { acl = "public-read" # Настройка CORS для внешнего доступа - cors { - allowed_headers = ["*"] - allowed_methods = ["GET", "PUT", "POST", "DELETE", "HEAD"] - allowed_origins = ["*"] - expose_headers = ["ETag"] - max_age_seconds = 3600 + cors_rule { + allowed_headers = ["*"] + allowed_methods = ["GET", "PUT", "POST", "DELETE", "HEAD"] + allowed_origins = ["*"] + expose_headers = ["ETag"] + max_age_seconds = 3600 } # Версионирование объектов