I think it all depends on the condition of engine bay.
If it's extremely dirty, you can't avoid wasihng and cleaning it.
Just cover ECU with some impervious material, pour the water gently. Use Good quality Shampoo. After final cleaning, get the engine bay cleaned / cleared with high pressure air jet, to not let water remain in the engine bay.
I have been regularly, thoroughly cleaning my engine bay since last year on fortnightly basis, AL HAM DU LI LLAH never faced any issue.