aws-toolkit-jetbrains icon indicating copy to clipboard operation
aws-toolkit-jetbrains copied to clipboard

Add ability to download and edit existing Lambda function

Open michaelschem opened this issue 4 years ago • 13 comments

Issue

I can't download and edit lambda functions that already exist in my Amazon account through the AWS explorer.

Solution Add an option to the context menu to download an existing lambda function.

michaelschem avatar Oct 23 '19 22:10 michaelschem

@michaelschem the code or only the sam template?

asyba avatar Oct 25 '19 19:10 asyba

I'm a bit new to lambdas, but I would think both would be necessary.

michaelschem avatar Oct 25 '19 19:10 michaelschem

Yes, download both the code and the sam template. If a SAM template already exists in the project, please add the function configuration to the template.

bnusunny avatar May 06 '20 07:05 bnusunny

Why was this issue closed?

blevine avatar May 13 '20 15:05 blevine

Sorry, it shouldn't have.

michaelschem avatar May 13 '20 16:05 michaelschem

FWIW, I may have come up with a (non-optimal) workaround.

  1. In IntelliJ IDEA, I copied the source for my node.js lambda into a local file. The lambda icon appeared in the left-hand margin.

  2. Create a bare-bones package.json file using npm init.

  3. Right-click on lambda icon and choose "Create new...

  4. Fill out the information in the form and click Create.

This will go most of the way through creating the lambda, but fail at the end with an error that indicates that the lambda already exists (which makes sense). But the rest of the creation process will have worked and now your local code is associated with your existing lambda.

I've only just gotten this to work so there may be some more gotchas down the road as I try to work with the existing lambda from IntelliJ.

Regardless, there should be a straightforward way to "import" a lambda that already exists in AWS so that it can be modified/managed from the IDE.

blevine avatar May 13 '20 18:05 blevine

Any update on this ?

bishonbopanna avatar Mar 21 '21 19:03 bishonbopanna

Any update on this?

appelmoesje avatar Jan 19 '22 13:01 appelmoesje

Any update on this?

gmonacho avatar Mar 29 '22 11:03 gmonacho

Any update on this?

CedricFJacob avatar Feb 16 '23 16:02 CedricFJacob

Any update on this?

CodePunk- avatar Feb 28 '23 03:02 CodePunk-

Any update on this?

lorenzoriano avatar Jul 03 '23 20:07 lorenzoriano

We'd still very much like to be able to use this in a full featured way!

ConstantineK avatar Nov 08 '23 13:11 ConstantineK