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
-
Go to GCP console and choose an existing project or create a new one. Sign in if you haven't already.
-
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.
-
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".
- After the script completes, download the keys from the Downloads section in the console.
- 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".
- Navigate to connections page.
- Click the "+" icon in the top-right corner and then click on "Cloud".
- Select "GCP" from the presented cloud providers.
- 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.
- 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.