title: IntelliJ run configuration environment variables not appearing in System.getenv
body: <p>I have an IntelliJ project. I have an <code>Application</code> class with a <code>main</code> function and a chunk of AWS code, part of which looks for the AWS credentials in the environment.</p>
  
  <p>Following these instructions, I set those credentials as environment variables in the run configuration:
  <a href="https://www.jetbrains.com/help/idea/run-debug-configuration-application.html" rel="nofollow noreferrer">https://www.jetbrains.com/help/idea/run-debug-configuration-application.html</a>
  <a href="https://i.stack.imgur.com/97L7L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/97L7L.png" alt="enter image description here"></a></p>
  
  <p>Previously, I tried using the EnvFile plugin (which is still active), and pointed it at an appropriate env file, also containing the AWS credentials (as well as other env vars).</p>
  
  <p>I am using this code snippet to print out all the environment variables:</p>
  
  <pre><code>StringBuilder sb = new StringBuilder();
  Map&lt;String, String&gt; env = System.getenv();
  for (String key : env.keySet()) {
    sb.append(key + ": " + env.get(key)  + "\n");
  }
  System.out.println(sb.toString());
  </code></pre>
  
  <p>I then run that configuration from the Run menu.</p>
  
  <p>My global environment variables are printed (as expected) but none from the configuration, or from the EnvFile.</p>
  
  <p>Where should I look next to resolve this issue? </p>