after some test i found the issue, it's generate by a parameter in config map
"MONGO_LOG_CONNECTION_STRING" = local.mongo_connection_str_app_log
The problem is caused by the string requesting values that will be available with the same apply that's trying to modify the config. That is, I'm creating the database and simultaneously setting it on the config map.
So I wanted to understand if my theory is correct.