creating storage module
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
resource "azurerm_storage_account" "storage_account" {
|
||||
name = var.storage_account_name
|
||||
resource_group_name = data.azurerm_resource_group.resource_group.name
|
||||
location = data.azurerm_resource_group.resource_group.location
|
||||
account_tier = "Standard"
|
||||
account_replication_type = "LRS"
|
||||
}
|
||||
|
||||
resource "azurerm_storage_table" "storage_table" {
|
||||
count = length(var.storage_tables)
|
||||
name = var.storage_tables[count.index]
|
||||
storage_account_name = azurerm_storage_account.storage_account.name
|
||||
}
|
||||
@@ -68,14 +68,10 @@ variable "resource_group_name" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "storage_account_name" {
|
||||
variable "storage_account_primary_connection_string" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "storage_tables" {
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
variable "tenant_id" {
|
||||
type = string
|
||||
}
|
||||
Reference in New Issue
Block a user