Dynamic blocks variables should be map(objects) and should be declared with elements in variables.tf file.