1. Run brew install nvm
  2. Follow caveats shown in console, mine were as follows, yours MAY be different!:

Add the following to ~/.bash_profile or your desired shell configuration file:

export NVM_DIR="$HOME/.nvm" . "$(brew --prefix nvm)/nvm.sh"

  1. Run . ~/.bash_profile to apply the changes you made to your .bash_profile file

If you are using Terraform for infrastructure provisioning on any cloud it is very important to store tfstate files at a centralized place. This will allow us to update the infrastructure very easily and allow multiple developers to use the same terraform repository.

How does it work?

In the example below I have defined backend block(azurerm) inside terraform block where I have given details of storage account where generated tfstate files will get stored. Now, whenever we use command terraform apply this will create/update infrastructure as described in the main.tf. The tfstate file gets stored on a specified storage account.

Gaurav Wadghule

Gaurav Wadghule

Devops | Kubernetes | Docker | CICD | Test Automation