aws-toolkit-jetbrains
aws-toolkit-jetbrains copied to clipboard
Add ability to download and edit existing Lambda function
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 the code or only the sam template?
I'm a bit new to lambdas, but I would think both would be necessary.
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.
Why was this issue closed?
Sorry, it shouldn't have.
FWIW, I may have come up with a (non-optimal) workaround.
-
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.
-
Create a bare-bones package.json file using npm init.
-
Right-click on lambda icon and choose "Create new...
-
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.
Any update on this ?
Any update on this?
Any update on this?
Any update on this?
Any update on this?
Any update on this?
We'd still very much like to be able to use this in a full featured way!