Skip to content

Commit 839839d

Browse files
[CI] Setup Buckets for Sccache
This patch sets up GCS Buckets for sccache remote caching. We set up one for Linux and one for Windows in each cluster. This creates some separation which might help slightly with security. We want to have the buckets in the same region as the machines to ensure uploads/downloads are as low latency as possible which is helped significantly when the compute and storage are colocated. Pull Request: llvm#505
1 parent 21a79a2 commit 839839d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

premerge/gke_cluster/main.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,19 @@ resource "google_container_node_pool" "llvm_premerge_windows_2022" {
141141
}
142142
}
143143
}
144+
145+
resource "google_storage_bucket" "object_cache_linux" {
146+
name = format("%s-object-cache-linux", var.cluster_name)
147+
location = var.region
148+
149+
uniform_bucket_level_access = true
150+
public_access_prevention = "enforced"
151+
}
152+
153+
resource "google_storage_bucket" "object_cache_windows" {
154+
name = format("%s-object-cache-windows", var.cluster_name)
155+
location = var.region
156+
157+
uniform_bucket_level_access = true
158+
public_access_prevention = "enforced"
159+
}

0 commit comments

Comments
 (0)