I'm trying to run my prefect deployment on GCP and finding it extremely hard! to start with, when I create a workpool and manually enter the block details, the Service Account Info is not getting updated with the details I enter. Any help would be appreciated
b
Bianca Hoch
02/28/2025, 7:58 PM
Hey KC, thanks for your message. How are you deploying? Are you using a hybrid worker with a Cloud Run work pool? Or a push work pool?
And 'prefect block register -m prefect_gcp' never creates a block. I get a 404 error when I visit the page in the website
KC
03/07/2025, 4:34 AM
(venv) venvks-Mac-mini:prefect-gcp kc$ prefect block register -m prefect_gcp
Successfully registered 4 blocks
┏━━━━━━━━━━━━━━━━━━━━┓
┃ Registered Blocks ┃
┡━━━━━━━━━━━━━━━━━━━━┩
│ BigQuery Warehouse │
│ GCP Credentials │
│ GcpSecret │
│ GCS Bucket │
└────────────────────┘
To configure the newly registered blocks, go to the Blocks page in the Prefect UI: https://app.prefect.cloud/account/<id>/workspace/<id>/blocks/catalog
KC
03/07/2025, 4:48 AM
Screenshot 2025-03-06 at 8.44.14 PM.png
KC
03/07/2025, 4:48 AM
Screenshot 2025-03-06 at 8.45.21 PM.png
KC
03/07/2025, 4:48 AM
as you can see, my service account file and info come up as None
KC
03/07/2025, 4:48 AM
what am I doing wrong
b
Bianca Hoch
03/07/2025, 3:28 PM
Hmm..i'm not quite sure what's happening with that 404 error when registering a block. Feels like it could be a bug. What version of prefect are you using? 👀
If you're trying to deploy to Cloud Run, i'd recommend following along with the push work pools guide. Follow the instructions for "Automatic Infrastructure Provisioning" and make sure you've got the "Google Cloud Run" tab selected for each step.