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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adding an option to get all the configurations results

oriel351 opened this issue · comments

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!

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.

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

@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.

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

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

This was implemented in #231 and merged 👌

I'm closing this issue :)