adding static web to storage account

This commit is contained in:
2025-04-18 15:19:29 -05:00
parent b0d43ee51a
commit 8de2d0275f
2 changed files with 15 additions and 0 deletions

View File

@@ -4,4 +4,12 @@ resource "azurerm_storage_account" "storage_account" {
location = data.azurerm_resource_group.resource_group.location location = data.azurerm_resource_group.resource_group.location
account_tier = var.account_tier account_tier = var.account_tier
account_replication_type = var.account_replication_type account_replication_type = var.account_replication_type
dynamic static_website {
for_each = var.static_websites
content {
index_document = static_website.value.index_document
}
}
} }

View File

@@ -12,6 +12,13 @@ variable "resource_group_name" {
type = string type = string
} }
variable "static_websites" {
default = []
type = list(object({
index_document = string
}))
}
variable "storage_account_name" { variable "storage_account_name" {
type = string type = string
} }