GCP - Pre-requisites
Pre-requisites
GCP Account with admin access to provision infrastructure. You will need a paid subscription to the GCP.
Install GCloud CLI - to authenticate & connect with GCP APIs.
Install kubectl (any version) on the local machine - it helps interact with the Kubernetes cluster.
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
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
// 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).
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.
Install SOPS -
For Linux: Follow the instructions here to install SOPS on Linux.
For Windows: Download the binary & follow the instructions provided.
For Mac: Follow the instructions here to install SOPS on macOS.
Install cURL - for making API calls.
For Linux: Follow the instructions here
For Windows: Download the wizard & follow the instructions provided.
For Mac: Follow the instructions here to install on macOS.
Install Visual Studio Code - for better code visualisation/editing capabilities.
Install Postman - to run digit bootstrap scripts.
Last updated
Was this helpful?