infra(object-storage): add sccache bucket to Terraform
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user