Newbie question: Is there any way to loop the variable to storing in mentioned code?. below is my configurations variable.
config= [{
"name" = shared_preload_libraries,
"values" = ["EXAMPLE1", "EXAMPLE2"]
},
{
"name" = "azure.extensions"
"values" = ["EXAMPLE1", "EXAMPLE2", "EXAMPLE3"]
}]
I need to iterate in such a way that, for each name in variable the corresponding values should inserterd one by one in below code.
resource "azurerm_postgresql_flexible_server_configuration" "example" {
name = name
server_id = azurerm_postgresql_flexible_server.example.id
value = values
}