For this recipe, we chose the option to edit the Terraform files directly in Visual Studio Code, which is in Cloud Shell, but the following alternative options are available:
- The Terraform files could be created and edited using the Vim tool (Linux editor: https://www.linux.com/training-tutorials/vim-101-beginners-guide-vim/), which is built into Cloud Shell.
- We could also have edited the Terraform files locally on our machine and then copied them to the Azure Storage service that is connected to Azure Cloud Shell.
- If the files are stored in a Git repository, we could also have cloned the repository directly into the Cloud Shell storage by running a git clone command in the Cloud Shell command-line terminal.
Also, regarding Terraform's authentication to perform actions in Azure, we did not take any action because Azure Cloud Shell allows direct authentication to our Azure subscriptions and Terraform, which is in Cloud Shell, automatically...