title: In AWS Codestar, how to configure branch deployments to specific environments?
body: <p>I just created a brand new AWS Codestar project. </p>
  
  <p>As far as I can tell, that Codestar is just a dashboard that integrates multiple AWS products. </p>
  
  <p>There is one thing that I don't know how to configure yet, and it is branch deployments. </p>
  
  <p>In my git repository, I have 3 branches: <code>master</code>, <code>develop</code> and <code>staging</code> </p>
  
  <p>In an ideal world, <code>master</code> deploys to production, <code>develop</code> to the development environment and <code>staging</code> to the QA environment.</p>
  
  <p>I don't know how to configure this pipeline using AWS, and I haven't been able to locate to relevant documentation in their developers portal. </p>
  
  <p>This is my <code>buildspec.yml</code> file just in case it can be configured there:</p>
  
  <pre><code>version: 0.2
  
  phases:
    install:
      commands:
        - echo Installing NPM Packages...
        - npm install
    build:
      commands:
        - aws cloudformation package --template template.yml --s3-bucket $S3_BUCKET --output-template template-export.yml
  
  artifacts:
    type: zip
    files:
      - template-export.yml
  </code></pre>
  
  <p>This is a project that uses AWS API Gateway to route requests to AWS Lambda functions if that matters. </p>