Repeatable deployments on Azure Cloud and elsewhere (eg. locally)
Docker image with all the bells and whistles for repeatable deployments
The following command starts cloudshell container and mounts current working directory in /usr/cloudshell/repo
sudo docker run -v ${PWD}:/usr/cloudshell/repo -it mcr.microsoft.com/azure-cloudshell /bin/bash
terraform init to install dependencies
terraform fmt && terraform validate to fix fomratting and validate configuration
terraform plan to show what is going to be changed
terraform apply to apply configuration (use -auto-approve flag to skip confirmation prompt)
terraform show to inspect the current state
terraform state list to list resources in the state file
terraform destroy to destroy the stack