title: Is it possible to copy code from one AWS Lambda function to another without downloading it first?
body: <p>So I'm currently working on building the deployer for our AWS Lambda functions.  </p>
  
  <p>Since AWS versions all share a configuration, this requires having multiple functions (foo_prod, foo_staging, foo_whatever) that are the various versions of our code instead of using aliases like I <em>want</em> to do.  </p>
  
  <p>So my question is: </p>
  
  <p>1) Whether or not there's a sane way to re-deploy code.  (IE: Staging to Prod) without downloading it to my desktop first and then re-uploading.</p>
  
  <p>2) Whether or not I'm wrong about that shared configuration bit or whether it's possible to tell under which alias the function is running in the actual Lambda such that I can create multiple environment variables for each environment.    </p>