Menu

1 / 5

Cloud & DevOps Wk 3: Installing Terraform, migrating state to an Azure storage account, and building VNets for my cloud project.

DEV Community: terraform·Samuel Ojo·2 days ago
#OUkMKsSX
#devtoterraform#devto#dev#state#terraform
Reading 0:00
15s threshold

Public cloud engineering project: installing Terraform, creating and destroying Azure resources from code, moving state into an Azure storage account, and building my first VNet.

Week 3: Terraform on Azure, remote state, and a scrambled paste

I'm writing a series about cloud and infrastructure engineering and building one project in public, one week at a time. Week 1 was Linux and Git, and Week 2 was Bash scripting and networking. Week 3 was Terraform, which I did in two parts: a first resource group, then remote state and a first virtual network.

Part 1: Installing Terraform and creating my first resource

On my Ubuntu VM I installed Terraform from HashiCorp's APT repository, and the Azure CLI, then signed in without a browser on the VM:

az login --use-device-code az account show --output table

Enter fullscreen mode

Exit fullscreen mode

My first mistake: I ran az account show before installing the Azure CLI and got az: command not found .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.