I realize that Terraform supports Azure, and I've actually been able to get Terraform working with Azure by doing the following:
- Create a storage account
- Create a blob container
- Plugged in access key
- Created a file titled backend.tfvars with resource_group_name, storage_account_name, container_name, access_key, key values.
- Added following to main.tf:
Main.tf
terraform {
backend "azurerm" {
}
}
- I ran
terraform init -backend-config="backend.tfvars"
When I look in the blob container, I see the myapp.tfstate file, which means that I've been successful, right?
What exactly does this allow me? I understand that my state file is now saved in Azure, but... how does that help me? I've looked around for documentation explaining this, but for some reason haven't been able to find anything.