Is it possible to copy code from one AWS Lambda function to another without downloading it first?

Viewed 14588

So I'm currently working on building the deployer for our AWS Lambda functions.

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 want to do.

So my question is:

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.

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.

1 Answers
Related