From 85ca419f822447d596ff3664b61f9a555815a26b Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont <nicolas@dandrimont.eu> Date: Fri, 20 Dec 2019 14:30:32 +0100 Subject: [PATCH] Store terraform state in azure --- azure/terraform/init.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure/terraform/init.tf b/azure/terraform/init.tf index 8f1f4c7..349c754 100644 --- a/azure/terraform/init.tf +++ b/azure/terraform/init.tf @@ -3,6 +3,15 @@ # - data: Retrieve data information to be used within the file # - resource: Define resource and create/update +terraform { + backend "azurerm" { + resource_group_name = "euwest-admin" + storage_account_name = "swhterraform" + container_name = "tfstate" + key = "prod.azure.terraform.tfstate" + } +} + # Configure the Microsoft Azure Provider # Empty if using the `az login` tool provider "azurerm" { -- GitLab