Skip to content

Commit 9a959bf

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. Reviewers: dschuff, Keenuts, cmtice, lnihlen, gburgessiv Reviewed By: cmtice Pull Request: #505
1 parent 3a37b4f commit 9a959bf

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)