Fix 101-storage-static-website (#188)

* fix 101-storage-static-website

---------

Co-authored-by: zjhe <hezijie@microsoft.com>
This commit is contained in:
lonegunmanb
2023-03-14 07:23:47 +08:00
committed by GitHub
parent fcd4f1d54f
commit 8aa98d5569
4 changed files with 35 additions and 11 deletions

View File

@ -1,14 +1,14 @@
resource "azurerm_storage_account" "default" {
name = local.storage_account_name
resource_group_name = azurerm_resource_group.default.name
location = "westus2"
location = azurerm_resource_group.default.location
account_kind = "StorageV2"
account_tier = "Standard"
account_replication_type = "LRS"
enable_https_traffic_only = true
provisioner "local-exec" {
command = "az storage blob service-properties update --account-name ${azurerm_storage_account.default.name} --static-website --index-document index.html --404-document 404.html"
static_website {
index_document = "index.html"
error_404_document = "404.html"
}
}