updating modules
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
output "storage_account_primary_connection_string" {
|
||||
value = azurerm_storage_account.storage_account.primary_connection_string
|
||||
}
|
||||
|
||||
output "storage_account_name" {
|
||||
value = azurerm_storage_account.storage_account.name
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
resource "azurerm_storage_account_static_website" "static_website" {
|
||||
count = length(var.static_websites)
|
||||
storage_account_id = azurerm_storage_account.storage_account.id
|
||||
error_404_document = var.static_websites[count.index].error_404_document
|
||||
index_document = var.static_websites[count.index].index_document
|
||||
}
|
||||
5
modules/storage/storage_share.tf
Normal file
5
modules/storage/storage_share.tf
Normal file
@@ -0,0 +1,5 @@
|
||||
resource "azure_storage_share" "storage_share" {
|
||||
count = length(var.storage_shares)
|
||||
name = var.storage_shares[count.index]
|
||||
storage_account_name = azurerm_storage_account.storage_account.name
|
||||
}
|
||||
@@ -12,14 +12,6 @@ variable "resource_group_name" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "static_websites" {
|
||||
default = []
|
||||
type = list(object({
|
||||
error_404_document = string
|
||||
index_document = string
|
||||
}))
|
||||
}
|
||||
|
||||
variable "storage_account_name" {
|
||||
type = string
|
||||
}
|
||||
@@ -45,6 +37,11 @@ variable "storage_queues" {
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
variable "storage_shares" {
|
||||
default = []
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
variable "storage_tables" {
|
||||
default = []
|
||||
type = list(string)
|
||||
|
||||
Reference in New Issue
Block a user