How to Create GCP Service Account Keys

How to Create GCP Service Account Keys

GCP Service Account Keys
Service Account Keys allows snapblocs to access customers' Google cloud provider environment for deploying customer stacks, collecting statistics of the stacks, etc. 
Service Account Keys are encrypted and stored on the secured AWS Systems Manager Parameter Store (not on the snapblocs system) to protect the customer's access keys from any unauthorized access.
You can create service account keys either
  1. following Creating service account keys or running the provided script.
To run
  1. Download the attached script to your local file system for creating GCP Service Account Keys.
The script will:
  1. Creating a service account
  2. Create a privateKeyData
  3. Enabling the following APIs 
    1. Google Kubernetes Engine API
    2. Compute Engine API
    3. Cloud Key Management Service (KMS) API
    4. Cloud Resource Manager API
  4. Save the privateKeyData into JSON file (base64-encoded string in JSON)
To run the script
  • Initialize Google Cloud SDK if you haven’t already.
  • Run the script.
    • chmod +x
    • bash
  • Follow the on-screen instructions.
What's Next?

    • Related Articles

    • How to add GCP Account Keys to snapblocs

      When deploying a snapblocs stack, snapblocs provisions the stack within the customer’s GCP account. The stack is integrated with Google GCP for Kubernetes clusters using Google Compute Engine instances and other GCP resources. snapblocs manages the ...
    • How to Create AWS IAM Access Keys

      AWS IAM Access Key ID and Secret Access Key IAM Access Keys allows snapblocs to securely access your Amazon AWS environment for deploying and collecting statistics of your platform stacks, etc.  Your Access Key values are encrypted and stored on the ...
    • GCP Provider Access Method

      Add a GCP provider access method to snapblocs before configuring or deploying a stack. When configuring a stack, snapblocs will retrieve some GCP account information such as available VPCs, Subnets, SSH Key Pairs, etc. This information is ...
    • Create snapblocs Account

      You need to create a snapblocs account before creating and deploying a stack. You need the following information to create a new snapblocs account on the snapblocs sign-up page. Username (must be unique) Phone number (optional) Given name (first ...
    • How to configure a GCP and K8S component

      Google Cloud Platform (GCP) is a suite of cloud computing services, including computing, data storage, data analytics, and machine learning. Google Cloud Platform provides infrastructure as a service, platform as a service, and serverless ...