From d312dd1a712d36cf4a37d326073cde53ebad1d4f Mon Sep 17 00:00:00 2001 From: Debkanchan Samadder Date: Sun, 4 Aug 2024 13:31:30 +0530 Subject: [PATCH] chore(infra): remove unused resources --- infra/index.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/infra/index.ts b/infra/index.ts index dae350c8..4eb72246 100644 --- a/infra/index.ts +++ b/infra/index.ts @@ -1,25 +1,9 @@ import * as gcp from "@pulumi/gcp"; import * as pulumi from "@pulumi/pulumi"; -const serviceName = - new pulumi.Config("service").get("name") || pulumi.getProject(); +const serviceName = new pulumi.Config("service").get("name") || pulumi.getProject(); const location = gcp.config.region || "asia-east1"; -const bucket = new gcp.storage.Bucket("bazel-remote-cache", { - location, // Replace with desired location if needed. - uniformBucketLevelAccess: true, -}); - -// IAM policy to allow the specific service account read and write access to the bucket -const bucketIAMMemberUser = new gcp.storage.BucketIAMMember( - "bucketIAMMemberUser", - { - bucket: bucket.name, - role: "roles/storage.objectUser", - member: `serviceAccount:${gcp.config.project}@cloudbuild.gserviceaccount.com`, - }, -); - const github_connection = gcp.cloudbuildv2.Connection.get( "github-connection", pulumi.interpolate`projects/${gcp.config.project}/locations/${location}/connections/GitHub`, @@ -40,7 +24,6 @@ new gcp.cloudbuild.Trigger("build-trigger", { }, }, substitutions: { - _BAZEL_REMOTE_CACHE_BUCKET: bucket.name, _LOG_DEBUG: new pulumi.Config().get("logDebug") ?? "false", }, filename: "cloudbuild.yaml",