Spotted this on terraform-provider-kubectl
Turns out you can create a template for go configuration which will add some Env vars and other settings. Very useful if you have multiple test which you want to debug /run which have some env var prerequisites.
1<component name="ProjectRunConfigurationManager"...