title: Elastic Beanstalk app.config option_settings with dynamic environment variables not working
body: <p>I am using an <code>app.config</code> as seen here:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;option_settings&quot;: [
          {
              &quot;namespace&quot;: &quot;aws:elasticbeanstalk:application:environment&quot;,
              &quot;option_name&quot;: &quot;AWS_ENVIRONMENT_NAME&quot;,
              &quot;value&quot;: &quot;`{ \&quot;Ref\&quot; : \&quot;AWSEBEnvironmentName\&quot; }`&quot;
          },
          {
              &quot;namespace&quot;: &quot;aws:elasticbeanstalk:application:environment&quot;,
              &quot;option_name&quot;: &quot;AWS_ENVIRONMENT_ID&quot;,
              &quot;value&quot;: &quot;`{ \&quot;Ref\&quot; : \&quot;AWSEBEnvironmentId\&quot; }`&quot;
          }
      ]
  }
  </code></pre>
  <p>But when I deploy the version with my config to an environment, the variables are not substituted in:</p>
  <p><a href="https://i.stack.imgur.com/DoumU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DoumU.png" alt="AWS environment variables from UI" /></a></p>