infra(object-storage): add sccache bucket to Terraform

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-02-25 21:46:45 +01:00
parent c80899066c
commit b321fa47a7
2 changed files with 23 additions and 0 deletions

View File

@@ -42,3 +42,21 @@ resource "scaleway_object_bucket" "gitlab_artifacts" {
enabled = false
}
}
resource "scaleway_object_bucket" "sccache" {
name = "${var.bucket_name_prefix}-sccache"
region = var.region
lifecycle_rule {
enabled = true
prefix = ""
expiration {
days = 14
}
}
versioning {
enabled = false
}
}

View File

@@ -22,3 +22,8 @@ output "gitlab_artifacts_bucket_name" {
description = "Name of the GitLab artifacts bucket"
value = scaleway_object_bucket.gitlab_artifacts.name
}
output "sccache_bucket_name" {
description = "Name of the sccache bucket"
value = scaleway_object_bucket.sccache.name
}