Enable aegis cheat in a custom scenario

Hello. I’m designing a custom scenario where i want all players to research their units, techs and pretty much everything instantly. Is there a trigger that allows me to enable/disable the cheat?

no, there isn’t such a trigger.

is there any other workaround i could do? I know i can use modify attribute to change the train time of all units to instant but how do i modify the time to research techs?

Not in the Editor. You would have to make a mod.
I tried doing something like this a while ago but than I redesigned my map.
It’s very easy to do in AoE3 (and I think AoM) in the editor but that’s a different engine.