title: Deploying spring boot to elasticbeanstalk and setting system properties
body: <p>I'm trying to deploy a spring boot application (generated with teh jhipster yeoman template) to aws.  I am having some success but find myself with a question of :</p>
  
  <p>How do I configure the production profile to use the AWS specified system properties to get the database connection information assigned properly.</p>
  
  <p>The AWS documentation just says set the databaseName, serverName, userName, password to the following to teh following:</p>
  
  <pre><code>System.getProperty("RDS_DB_NAME"); 
  System.getProperty("RDS_USERNAME"); 
  System.getProperty("RDS_PASSWORD"); 
  System.getProperty("RDS_HOSTNAME");
  System.getProperty("RDS_PORT");
  </code></pre>
  
  <p>I am using a yaml file to specify these parameters for Dev and prod mode and I find myself asking.  How do I inject the above calls into my yaml file?   in jruby on rails I'd do something like: </p>
  
  <pre><code>username: &lt;%= System.getProperty("RDS_USERNAME") %&gt;
  </code></pre>
  
  <p>in my yaml file.  but seeing that this is Java I don't think this will work.  or should I be thinking about this differently?  It just seems like the easy place to do this should be in teh yaml file and a lot of my googling doesn't seem to be turning up much.  </p>
  
  <p>Any help would be appreciated.</p>