1. Pre-requisites

Find the pre-requisites for deploying DIGIT platform services on AWS

Topics covered:

Pre-requisites

  1. AWS account with admin access to provision infrastructure. You will need a paid subscription to the AWS.

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

  3. Install Helm - this 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 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

Refer to tfswitch documentation for different platforms. Terraform version 0.14.10 can be installed directly as well.

5. Run tfswitch and it will show a list of terraform versions. Scroll down and select terraform version (0.14.10) for the Infra-as-code (IaC) to provision cloud resources as code. 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. 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.

  1. Install cURL - for making API calls

  2. Install Visual Studio Code - for better code visualization/editing capabilities

  3. Install Postman - to run digit bootstrap scripts

  4. Install AWS CLI

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.