From 5287bbbf6618a2cf68c4d46e4655dd69ca00c021 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Sat, 28 Feb 2026 17:56:57 +0100 Subject: [PATCH] infra: add foxhunt-binaries S3 bucket for binary distribution Co-Authored-By: Claude Opus 4.6 --- infra/modules/object-storage/main.tf | 18 ++++++++++++++++++ infra/modules/object-storage/outputs.tf | 5 +++++ 2 files changed, 23 insertions(+) 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 +}