adding storage blob to storage account
This commit is contained in:
9
modules/storage/storage_blob.tf
Normal file
9
modules/storage/storage_blob.tf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
resource "azurerm_storage_blob" "storage_blob" {
|
||||||
|
count = length(var.storage_blobs)
|
||||||
|
name = var.storage_blobs[count.index].name
|
||||||
|
storage_account_name = azurerm_storage_account.storage_account.name
|
||||||
|
storage_container_name = var.storage_blobs[count.index].name
|
||||||
|
type = var.storage_blobs[count.index].type
|
||||||
|
content_type = var.storage_blobs[count.index].content_type
|
||||||
|
source = var.storage_blobs[count.index].source
|
||||||
|
}
|
||||||
@@ -16,6 +16,17 @@ variable "storage_account_name" {
|
|||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "storage_blobs" {
|
||||||
|
default = []
|
||||||
|
type = list(object({
|
||||||
|
name = string,
|
||||||
|
storage_container_name = string,
|
||||||
|
type = string,
|
||||||
|
content_type = string,
|
||||||
|
source = string
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
variable "storage_containers" {
|
variable "storage_containers" {
|
||||||
default = []
|
default = []
|
||||||
type = list(string)
|
type = list(string)
|
||||||
|
|||||||
Reference in New Issue
Block a user