I'm trying to run my prefect deployment on GCP and...
# ask-community
k
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
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?
k
SO I've been trying to follow this step: https://docs.prefect.io/integrations/prefect-gcp/index
And 'prefect block register -m prefect_gcp' never creates a block. I get a 404 error when I visit the page in the website
(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
Screenshot 2025-03-06 at 8.44.14 PM.png
Screenshot 2025-03-06 at 8.45.21 PM.png
as you can see, my service account file and info come up as None
what am I doing wrong
b
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.