infra/turborepo-cache/README.md
Turborepo Remote Cache Infrastructure
Pulumi project managing the Turborepo remote cache on GCP (studyflash-project-1, europe-west6).
Turborepo Remote Cache Infrastructure
Pulumi project managing the Turborepo remote cache on GCP (studyflash-project-1, europe-west6).
Resources
- GCS bucket
studyflash-turborepo— cache artifact storage - Cloud Run v2 service
turborepo-remote-cache— runsducktors/turborepo-remote-cachewith a GCS FUSE mount
Prerequisites
- Pulumi CLI (
brew install pulumi/tap/pulumi) - gcloud CLI authenticated as
rajiv@studyflash.ch - pnpm
Setup
cd infra/turborepo-cache
pnpm install
pulumi login --local
pulumi stack init prod
gcloud auth application-default login --account=rajiv@studyflash.ch
Import existing resources
Since these resources already exist in GCP, import them so Pulumi adopts them without recreating:
pulumi import gcp:storage/bucket:Bucket turborepo-cache studyflash-turborepo
pulumi import gcp:cloudrunv2/service:Service turborepo-remote-cache projects/studyflash-project-1/locations/europe-west6/services/turborepo-remote-cache
Usage
pnpm preview # check for drift
pnpm run pulumi:up # apply changes
Future: shared state backend
Local state (~/.pulumi/stacks/) only lives on your machine. To let the team deploy, switch to a GCS bucket:
pulumi login gs://your-state-bucket