title: Pass environment variable on AWS Elastic Beanstalk for Spring Boot App using Jasypt
body: <p>I was deploying my Spring Boot Application on AWS Elastic Beanstalk. My web app is using Jasypt, so in the application.properties file, I wrote down <code>jasypt.encryptor.password=</code>, currently the password in this file is empty, I want to pass the password as a variable on AWS Beanstalk's configuration. </p>
  
  <p>When testing locally, I used <code>java -jar myapp.jar --jasypt.encryptor.password=1234</code> in command line, and it ran successfully. However, when deploying on AWS, I added <code>jasypt.encryptor.password</code> in environment properties and set its value to 1234, the app failed to run. The log said I cannot set the password as empty. So, at this point Beanstalk did not read the environment property I just set. But it can really read the properties later because I tested it after setting another property and used GET API to print it. </p>
  
  <p>My question is: how to make Elastic Beanstalk run/read the environment properties at the beginning? In other words, how to make EB run <code>java -jar myapp.jar</code> with <code>--jasypt.encryptor.password=1234</code>attached?</p>
  
  <p>Thank you so much in advance!</p>