alexcasalboni / aws-lambda-power-tuning

AWS Lambda Power Tuning is an open-source tool that can help you visualize and fine-tune the memory/power configuration of Lambda functions. It runs in your own AWS account - powered by AWS Step Functions - and it supports three optimization strategies: cost, speed, and balanced.
Apache License 2.0
5.27k stars 362 forks source link

adding an option to get all the configurations results #207

Closed oriel351 closed 2 months ago

oriel351 commented 12 months ago

Hey,

Currently, when executing the step function, the output would be the duration and cost of the best configuration. What about adding additional parameter to the input json, so that in the output there will be an array of objects, each corresponds to different memory configuration execution, and let the user handle the data and use it as input to another process. Thanks!

alexcasalboni commented 12 months ago

Hi @oriel351, thanks for reaching out :)

I think this would be a useful addition. An input parameter such includeOutputResults: true|false would do the job. What do you think?

In the meantime, as a temporary solution, you can find the whole array of results (for all the tested configurations) in the output of the Executor step.

oriel351 commented 12 months ago

@alexcasalboni yes that sounds good! it would definitely do the work. Thanks :)

alexcasalboni commented 12 months ago

@oriel351 do you have any experience with AWS Step Functions and Node.js? Would you feel comfortable taking a first stab at this? There's no wrong answer, of course :) If not, I'll be happy to jump on this later this month.

oriel351 commented 11 months ago

@alexcasalboni yeah why not :) , I'll could get to it towards the weekend,

alexcasalboni commented 5 months ago

@oriel351 did you manage to find some time to work on this? :)

alexcasalboni commented 2 months ago

This was implemented in #231 and merged 👌

I'm closing this issue :)