Skip to content

Instantly share code, notes, and snippets.

@carsten-j carsten-j/remoteState.tf
Last active Jan 7, 2019

Embed
What would you like to do?
Terraform backend storage account on Azure
# Configure the Azure Provider
provider "azurerm" {
version = "=1.20.0"
}
resource "azurerm_resource_group" "remotestate" {
name = "tfrs"
location = "West Europe"
}
resource "azurerm_storage_account" "remotestate" {
name = "tfrs"
resource_group_name = "${azurerm_resource_group.remotestate.name}"
location = "West Europe"
account_tier = "Standard"
account_kind = "StorageV2"
account_replication_type = "LRS"
}
resource "azurerm_storage_container" "remotestate" {
name = "tfrs"
resource_group_name = "${azurerm_resource_group.remotestate.name}"
storage_account_name = "${azurerm_storage_account.remotestate.name}"
container_access_type = "private"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.