title: How to run a shell script in AWS Codepipeline?
body: <p>I have a PHPproject hosted in Github and Im trying to setup a Continuous Integration using AWS Codepipeline and ElasticBeanstalk.</p>
  
  <p>So far, Im able to get the repository contents from github and deploy it to ElasticBeanstalk. But I need to run a shell script before the deployment that will update a config.json file and also update a environment variable.</p>
  
  <p>This is what Im trying to accomplish in the Pipeline:</p>
  
  <ol>
  <li>Get the project files from Github (done) </li>
  <li>Run a shell script that will update a config.json file in the project</li>
  <li>Run a shell script that will set a environment variable in ElasticBeanstalk</li>
  <li>Deploy to ElasticBeanstalk (done)</li>
  </ol>
  
  <p>Any ideas of how I can get this working?</p>
  
  <p>thanks</p>