This repo is a bit of a brain dump for learning Azure through Terraform.
- Resource Group
- Virtual Network
- Private Subnet
- Public IP Address
- Network Interface
- Virtual Machine
- Security Group & Rules
# Initialize things
terragrunt init
# Deploy infrastructure
terragrunt apply
# Initialize things
terraform init
# Deploy infrastructure
terraform apply -var-file=environment/us-east.tfvars
I first received this issue when running terraform init
:
➜ Azure-Terraform-Learning git:(main) ✗ terraform init
Initializing the backend...
╷
│ Error: storage.NewClient() failed: dialing: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
│
│
╵
Well, that seemed odd. After googling for it, I realize that while I had run gcloud init
for the backend, I hadn't actually authenticated. This next command fixed the issue, and allowed me to run terraform init
successfully.
gcloud auth application-default login