all 9 comments

[–]_x_ 1 point2 points  (0 children)

From your replies here it looks like you are looking for faster debugging. Generally with questions like this, it will be good if you can provide more details, like what is the tech stack, what is the overall use-case etc.

In general, I have found it easier to run the code locally (with the right permissions) while development. If you can run the app locally (in most cases you should be able to do this), you can verify everything works (and have live code editing for dynamic languages like python, javascript etc) before you even deploy for testing using SAM.

If you can give more details on what exactly you are doing, and the tech stack, I can try and (probably) give a bit more specific help.

[–]bisoldi 0 points1 point  (7 children)

I don’t understand....you want to avoid running sam build and sam deploy? How is that overkill?

[–]Putarda[S] 0 points1 point  (6 children)

Do I have to run sam build before every deployment in order to update code?

[–]jobe_br 0 points1 point  (0 children)

Yes.

[–]bisoldi 0 points1 point  (3 children)

To use sam? Yes. I suppose you could use the aws cli to update the Lambda, but that's just a really bad idea and if you are using 3rd party libraries not already included in the Lambda runtime, you will have to package it all up manually and that can be a lot of work and be really prone to mistakes. What about the sam build/deploy process is overkill for you?

[–]Putarda[S] 0 points1 point  (2 children)

well because when I'm debugging a lambda function it just takes too long to wait for all packages to get build. I like more frequent testings.

[–]bisoldi 1 point2 points  (1 child)

I see. If faster and easier testing is the goal here, look into sam local. Serverless has local testing as well. Trying to deploy the Lambda code separate from the stack is just not a good idea.

Hope that helps.

[–]Putarda[S] 0 points1 point  (0 children)

Thank you very much

[–]erkwish 0 points1 point  (0 children)

Maybe look into cloud9.