title: Is there any possibility to use CodeDeploy environment variables in section files of AppSpec file
body: <p>I have website, which stored on AWS EC2 servers.</p>
  
  <p>We have 2 servers, one for production environment and another one for development and staging environments.</p>
  
  <p>Development and staging environments located in different folders. For example development env stored in <code>/var/www/development</code>, while staging stored in <code>/var/www/staging</code>.</p>
  
  <p>I'd like to use AWS CodeDeploy to upload files directly from bitbucket. I put AppSpec file, which copy source code to <code>/var/www/html</code> folder and install all dependencies and configurations. But I want my AppSpec file to copy source code to <code>/var/www/development</code> or to <code>/var/www/staging</code> depending on Development group, that was selected.</p>
  
  <p>Is there is any way to do it or, maybe, there are some better approach in my situation?</p>