Hii community,
I am trying to create a storage account with multiple file shares with a single form of variables. currently I am trying by map of list of objects like below:
variable "StorageAccount" {
type = map(map(list(object({
FileShare = string
Quota = number
Tier = string
}))))
}
StorageAccount = {
"sa1" = {
"FS" = [{
FileShare = "File1"
Quota = 50
Tier = "Hot"
},
{
FileShare = "File2"
Quota = 50
Tier = "Hot"
}]
},
"sa2" = {
"FS" = [{
FileShare = "File1"
Quota = 50
Tier = "Hot"
},
{
FileShare = "File2"
Quota = 50
Tier = "Hot"
}]
}
}
here I am trying to create sa1 storage account and FS is object to create fileshares.
but Its not working as I expected.
Can someone help me achieve my goal ??