Skip to content

Commit

Permalink
fix: use service account from path
Browse files Browse the repository at this point in the history
  • Loading branch information
alextes committed Oct 13, 2023
1 parent f55e64d commit 06ded3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bin/migrate-from-gcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ const GCS_BUCKET: &str = "execution-payload-archive";

fn get_gcs_object_store() -> anyhow::Result<impl ObjectStore> {
// We can't read directly from the gcs_store so mimic what it does. No need to blow up if we fail.
info!(gcs_bucket = "execution-payload-archive", "using GCS store");
let gcs_store = GoogleCloudStorageBuilder::from_env()
info!(gcs_bucket = GCS_BUCKET, "using GCS store");
let gcs_store = GoogleCloudStorageBuilder::new()
.with_service_account_path("./gcs_secret.json")
.with_bucket_name(GCS_BUCKET)
.build()?;
Ok(gcs_store)
Expand Down

0 comments on commit 06ded3e

Please sign in to comment.