Last active
January 7, 2019 19:58
-
-
Save carsten-j/35384ccc9c430d78ff84d16388f2475b to your computer and use it in GitHub Desktop.
Terraform backend storage account on Azure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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