Dynamic block: Blocks of type "ace_rx" are not expected here

Hi

I have the follwing configuration;

variables:

variable “archive_ACL_rwx” {
type = list(string)
default = [“12345”,“678”]
}

variable “archive_ACL_r-x” {
type = list(string)
default = [“fde4rws”]
}

module call

module “storage_filesystem” {
source = “./storage_filesystem”
name = “archive”
storage_datalake_id = azurerm_storage_account.datalake.id
ace_rwx_id = var.archive_ACL_rwx
ace_rx_id = var.archive_ACL_r-x
}

resource:

resource “azurerm_storage_data_lake_gen2_filesystem” “new_fs”{
name = var.name
storage_account_id = var.storage_datalake_id
dynamic “ace_rwx” {
for_each = var.ace_rwx_id
content {
type = “user”
scope = “access”
id = ace_rwx.value
permissions = “rwx”
}
}

dynamic “ace_rx” {
for_each = var.ace_rx_id
content {
type = “user”
scope = “access”
id = ace_rx.value
permissions = “r_x”
}
}
}

resource variables;

variable “storage_datalake_id” {

type = string

}

variable “name” {

type = string

}

variable “ace_rx_id” {

type = list(string)

}

variable “ace_rwx_id” {

type = list(string)

}

During “terraform plan” the follwong error occurs.

Error: Unsupported block type

│ on storage_filesystem\main.tf line 36, in resource “azurerm_storage_data_lake_gen2_filesystem” “new_fs”:
│ 36: dynamic “ace_rwx” {

│ Blocks of type “ace_rwx” are not expected here.


│ Error: Unsupported block type

│ on storage_filesystem\main.tf line 46, in resource “azurerm_storage_data_lake_gen2_filesystem” “new_fs”:
│ 46: dynamic “ace_rx” {

│ Blocks of type “ace_rx” are not expected here.

What is wrong here, probably you have besser way to implement ACL for datalake file systems?

Please close issue.
I found my mistake