title: How to create an environment file specific for build system using aws code build
body: <p>I source my environment specific variables from .env file (I'm using dotenv package). This file is not version controlled. </p>
  
  <p>Using code pipeline stage codebuild how do I create this .env file and its contents ?</p>
  
  <p>I'm thinking, I have to use buildspec to create and add content to the .env file, but have no idea how ?</p>
  
  <p>Thanks</p>