title: Set environment variables in AWS EMR during bootstrap
body: <p>I added the following configuration in <code>spark-env</code></p>
  
  <pre><code>--configurations '[
       {
         "Classification": "spark-env",
         "Properties": {},
         "Configurations": [
             {
               "Classification": "export",
               "Properties": {
                   "MY_VARIABLE": "MY_VARIABLE"
               }
             }
         ]
       }
       ]'
  </code></pre>
  
  <p>But if I just do <code>echo $MY_VARIABLE</code> in bash I can't see them in the terminal.</p>
  
  <p>Basically what I want to do is the following: </p>
  
  <ul>
  <li>schedule the creation of an AWS EMR cluster with AWS Lambda (where I would set all my environment variables such as git credentials)</li>
  <li>in the bootstrapping of the machine, install a bunch of things, including git</li>
  <li>git clone a repository (so I need to use the credentials stored in the environment variables)</li>
  <li>execute some code from this repository</li>
  </ul>