GCP - Pre-requisites

Pre-requisites

  1. GCP Account with admin access to provision infrastructure. You will need a paid subscription to the GCP.

  2. Install GCloud CLI - to authenticate & connect with GCP APIs.

  3. Install kubectl (any version) on the local machine - it helps interact with the Kubernetes cluster.

  4. Install Helm - helps package the services, configurations, environments, secrets, etc, into Kubernetes manifests. Verify that the installed version of Helm is equal to 3.0 or higher.

// command to check helm version
helm version
  1. Install terraform - for the Infra-as-code (IaC) to provision cloud resources. This provides the desired resource graph and helps destroy the cluster in one go.​

// On Linux
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update && sudo apt-get install terraform
// On Mac
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
  1. (Optional) Install tfswitch - to run different versions of Terraform on the machine. tfswitch supports multiple Terraform versions on the same machine, and you can toggle between the desired versions.

// On Mac
brew install warrensbox/tap/tfswitch
// On Linux
curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/master/install.sh -o install.sh
sudo bash install.sh

Run tfswitch, and it will show a list of Terraform versions. Scroll down and select the Terraform version (0.14.10).

  1. Install Golang

    • For Linux: Follow the instructions here to install Golang on Linux.

    • For Windows: Download the installer using the link here and follow the installation instructions.

    • For Mac: Download the installer using the link here and follow the installation instructions.

  2. Install SOPS -

  3. Install cURL - for making API calls.

  4. Install Visual Studio Code - for better code visualisation/editing capabilities.

  5. Install Postman - to run digit bootstrap scripts.

Last updated

Was this helpful?