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. Navigate to connections page.
  4. Click the "+" icon in the top-right corner and then click on "Cloud".
  5. Select "GCP" from the presented cloud providers.
  6. Complete the creation process by providing the required values in the form.
  • Connection name: Enter an identifiable name for your connection.
  • Key: Upload the keys downloaded earlier.
  1. Click the "Create" button to create the connection.

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?