fbpx

In order to allow Spotinst to manage GCP resources, it is necessary to authenticate Spotinst with a relevant GCP Project.

  1. Go to the Spotinst Console.
  2. In the Welcome page, select Google Cloud Platform.
  3. Select one of two methods to connect your account:
    • Manual method
    • Automatic Method (via gcloud)

Option 1: Manual Method

Step 1
Login to the google cloud project you would like Spotinst to connect to.
Use the provided button for quick navigation.

Step 2
Navigate to Service Account and select your project.
Use the provided button for quick navigation.

Step 3
Create a service account for Spotinst actions. name it as wizard instructs:

On Spotinst console:

On GCP console:

 

Step 4
Grant your service account editor permissions and create a JSON key

 

Save the JSON file.

 

Step 5
Upload a Service Account Key – browse the JSON file previously created

 

Click on connect to finish the process.

We’ll check connectivity to your GCP account, and you’re all set to create your first Elastigroup!

Option 2: Automatic Method

Prerequisites:

  • Have gcloud installed.
  • Have permissions to create a service account.

Step 1
Enter the GCP project ID you would like to connect.

Step 2
Copy the provided script and run it on a local terminal with gcloud available. The GCP_Project_ID parameter is replaced dynamically with the value provided in step 1.

Step 3
The script will output a spotinst_key.json file. Select it via the provided “Browse” button.

Click on connect to finish the process.
We’ll check connectivity to your GCP account, and you’re all set to create your first Elastigroup!