Connecting GCP
Link your Google Cloud Platform account to Zynnode with a service account key.
Zynnode connects to Google Cloud Platform using a service account JSON key. This key gives Zynnode the permissions to deploy to services like Cloud Run, App Engine, and Compute Engine in your GCP project.
Prerequisites
- A Google Cloud Platform account with billing enabled
- A GCP project to deploy into
- Permission to create service accounts in that project
Step-by-Step Setup
Start the Connection in Zynnode
During the new project wizard, select GCP as your cloud provider. You'll see a form asking for:
- Connection Name — A friendly label (e.g., "My GCP Project")
- Service Account JSON — A JSON key file from Google Cloud
- Project ID — Your GCP project identifier (auto-fills from the JSON)
The next steps show you how to create the service account and download the key.
Create a Service Account in Google Cloud Console
- Open the Google Cloud Console.
- Make sure you've selected the correct project from the project dropdown at the top of the page.
- In the left sidebar, navigate to IAM & Admin → Service Accounts. Or go directly to: console.cloud.google.com/iam-admin/serviceaccounts
- Click + Create Service Account at the top.
Configure the Service Account
- Service account name — Enter a descriptive name like
zynnode-deploy. - Service account ID — This auto-fills based on the name. Leave it as-is.
- Description — Optional. You can write "Used by Zynnode for deployments."
- Click Create and continue.
Assign Roles
On the Grant this service account access to project step, you need to add four roles. Click the Role dropdown and add each one:
| Role | Why It's Needed |
|---|---|
| Cloud Run Admin | Deploy and manage Cloud Run services |
| Storage Admin | Upload build artifacts and static files |
| Service Account User | Allow the service account to act on behalf of other service accounts (needed for Cloud Run) |
| Artifact Registry Writer | Push container images for Cloud Run deployments |
To add multiple roles:
- Select the first role from the dropdown.
- Click + Add another role.
- Repeat until all four roles are added.
Click Continue, then click Done.
Make sure all four roles are assigned. Missing roles will cause deployment failures with "permission denied" errors.
Download the JSON Key
- You'll be back on the Service Accounts list. Find the service account you just created.
- Click the three dots (⋮) menu on the right side of the row.
- Click Manage keys.
- Click Add key → Create new key.
- Select JSON as the key type.
- Click Create.
The JSON key file will download to your computer automatically. It contains your project ID, client email, and a private key.
Keep this file safe. It provides access to your GCP project. Don't share it publicly or commit it to a repository.
Upload the Key to Zynnode
Back in the Zynnode dashboard:
- Click the upload area or drag and drop the JSON key file you just downloaded.
- Zynnode will parse the file and auto-fill the Project ID and show the service account email with a green checkmark.
- Verify the project ID matches the GCP project you want to deploy to. You can override it if needed.
- Give the connection a name (e.g., "My GCP Project").
- Click Connect.
Zynnode will verify the credentials and show a success message. You can now proceed with your deployment.
If you've already connected a GCP project in a previous deployment, Zynnode will detect the existing connection and skip this step.
Alternatively: Paste the JSON Manually
If you prefer, you can paste the contents of the JSON key file directly instead of uploading:
- Open the downloaded
.jsonfile in any text editor. - Copy the entire contents.
- In Zynnode, paste it into the Service Account JSON text area.
- Zynnode will parse and validate the JSON automatically.
Troubleshooting
"Invalid service account key" error
- Make sure you downloaded the key in JSON format, not P12.
- Verify the JSON file contains these fields:
type,project_id,client_email, andprivate_key. - Don't modify the JSON file — paste or upload it exactly as downloaded.
"Permission denied" during deployment
- Go back to IAM & Admin → Service Accounts in the Google Cloud Console.
- Click on your service account, then go to the Permissions tab.
- Verify all four required roles are assigned: Cloud Run Admin, Storage Admin, Service Account User, Artifact Registry Writer.
"Project not found" error
- Verify the Project ID shown in Zynnode matches an actual GCP project.
- Make sure the GCP project has billing enabled. Go to Billing in the Google Cloud Console and confirm the project is linked to a billing account.
I want to disconnect GCP
To revoke Zynnode's access to your GCP project:
- Open the Google Cloud Console.
- Navigate to IAM & Admin → Service Accounts.
- Find the service account you created for Zynnode (e.g.,
zynnode-deploy). - Click the three dots (⋮) menu and select Delete.
- In the Zynnode dashboard, remove the GCP connection card.