Skip to main content
Boost your DevOps efficiency! Dive into our latest white paper.Read Now

GCP Connection

This guide will help you set up your GCP connection.

info

Pre-requisite:

  • Ensure you are logged in to the GCP management console and Kapstan application.
  • Before you proceed, please ensure that you have an active GCP account.

Steps to Set Up GCP Connection

  1. Go to GCP console and choose an existing project or create a new one. Sign in if you haven't already.

  2. Open Google Cloud Shell, situated near notifications on the top right. If it is your first time, GCP will ask you to activate Cloud Shell, click on "Activate Cloud Shell". Loading takes about 15 seconds.

  3. Paste and run the following command in the Google Cloud Shell:

curl https://scripts.kapstan.io/kapstan_onboard_gcp.sh | \bash -s -- $GOOGLE_CLOUD_PROJECT kapstan-service-account

While running the script, you'll be prompted to authorize. Click "Authorize".

  1. After the script completes, download the keys from the Downloads section in the console.

  2. Enter '/key.json' in the modal at the end of existing text (final file path will look like /home/john/key.json) and click "Download".

  3. Upload the key in the form on the left and click “Confirm”.

  4. Go to Cloud Connection creation page.

  5. Select GCP from the presented cloud providers

  6. Upload the keys downloaded in previous step and click Confirm.

Verify Connection

Once you established the connection with Kapstan, you will be directed to the Connections page. You can check the status of the connection by checking the status column.

Can't find what you need?