diff --git a/scripts/terraform-backend/README.md b/scripts/terraform-backend/README.md index 20c16253..225b13fa 100644 --- a/scripts/terraform-backend/README.md +++ b/scripts/terraform-backend/README.md @@ -33,26 +33,26 @@ This directory contains a Bicep template that will create an Azure Storage accou 1. Deploy the Bicep template to the resource group: ```console - az deployment group create --name terraform-backend --resource-group tfstate --template-uri https://github.com/equinor/ops-actions/blob/main/scripts/terraform-backend/main.bicep --parameters storageAccountName= + az deployment group create --name terraform-backend --resource-group tfstate --template-file main.bicep --parameters storageAccountName= ``` Requires Azure role `Owner` at the resource group scope. ### Configure Terraform backend -In your Terraform configuration file, add the following backend configuration: - -```terraform -terraform { - backend "azurerm" { - resource_group_name = "tfstate" - storage_account_name = "" - container_name = "tfstate" - key = "terraform.tfstate" - use_azuread_auth = true - } -} -``` +1. In your Terraform configuration file, add the following backend configuration: + + ```terraform + terraform { + backend "azurerm" { + resource_group_name = "tfstate" + storage_account_name = "" + container_name = "tfstate" + key = "terraform.tfstate" + use_azuread_auth = true + } + } + ``` ## References