diff --git a/infra/modules/object-storage/main.tf b/infra/modules/object-storage/main.tf index 2e8da1fe0..59f2fd184 100644 --- a/infra/modules/object-storage/main.tf +++ b/infra/modules/object-storage/main.tf @@ -60,3 +60,21 @@ resource "scaleway_object_bucket" "sccache" { enabled = false } } + +resource "scaleway_object_bucket" "binaries" { + name = "${var.bucket_name_prefix}-binaries" + region = var.region + + lifecycle_rule { + enabled = true + prefix = "archive/" + + expiration { + days = 30 + } + } + + versioning { + enabled = false + } +} diff --git a/infra/modules/object-storage/outputs.tf b/infra/modules/object-storage/outputs.tf index 2b6e70263..789798836 100644 --- a/infra/modules/object-storage/outputs.tf +++ b/infra/modules/object-storage/outputs.tf @@ -27,3 +27,8 @@ output "sccache_bucket_name" { description = "Name of the sccache bucket" value = scaleway_object_bucket.sccache.name } + +output "binaries_bucket_name" { + description = "Name of the binaries distribution bucket" + value = scaleway_object_bucket.binaries.name +}