Skip to content

Instantly share code, notes, and snippets.

@carsten-j
Last active January 7, 2019 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carsten-j/35384ccc9c430d78ff84d16388f2475b to your computer and use it in GitHub Desktop.
Save carsten-j/35384ccc9c430d78ff84d16388f2475b to your computer and use it in GitHub Desktop.
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