title: How to add Laravel env file in AWS AutoScaling
body: <p>I am working on a laravel project which is hosted on AMAZON AWS. We are also using <strong>AWS AutoScaling</strong> service, since new instances can be added/removed on the fly, I am also using <strong>AWS CodeDeploy</strong> so whenever a new instance will be created it will pull the code from github as we do not include environment variable file on git so new instance will not have the environment variable file so the application will not be able to run. I also do not want to include the environment variable file on git as it is not recommended to include that file on git. If I ignore the best practices here and add the env file on git then still there is a problem as I have different branches with different env files so when I merge the code it will replace the env file as well. So what are the best practices or solutions for this case ?</p>
  
  <p>FYI: we are not using <strong>ElasticBeanstalk</strong> as I am familiar that on elastic beanstalk there is an option on <strong>EB</strong> dashboard to add environment variables and the path where env file will create upon new instance creation but we are not using <strong>ElasticBeanstalk</strong>, we are using <strong>AutoScaling</strong> service and according to my findings AWS do not provide such functionality for <strong>AutoScaling</strong> service.</p>