Created
January 5, 2020 18:14
-
-
Save KyMidd/8d28825824cb4679caee5d245649a7f2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
resource "azurerm_storage_account" "storage_account" { | |
# Name can only consist of lowercase letters and numbers, and must be between 3 and 24 characters long | |
name = "kylerstorageaccount" # This is the storage_account_name value in the terraform backend block above | |
resource_group_name = azurerm_resource_group.resource_group.name | |
location = azurerm_resource_group.resource_group.location | |
account_tier = "Standard" | |
account_kind = "StorageV2" | |
account_replication_type = "LRS" | |
enable_https_traffic_only = true | |
} | |
resource "azurerm_storage_container" "storage_container" { | |
# Name must be lower-case characters or numbers only. No hyphens, underscores, or caps. | |
name = "terraform-state-container" ## This is the container_name value in the terraform backend block above above | |
storage_account_name = azurerm_storage_account.storage_account.name | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment