Wondering what’s next for npm?Check out our public roadmap! »

    cdk-lambda-powertuner
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.2 • Public • Published

    CDK Lambda Power Tuner

    This is simply a CDK wrapper for the SAM/SAR application - aws-lambda-power-tuning

    Note this is an alpha module, it needs thoroughly tested before being production recommended

    All of the lambda logic is cloned on build from that source repo with only the stepfunction definition being defined in this project.

    This enables you to now do this:

    snippet

    Deploying the state machine

    Import it into any CDK stack and then cdk deploy

    Running The Tuner

    This is the same as here

    Differences from aws-lambda-power-tuning

    Since this uses AWS CDK to build and deploy the step function, we need to play by the rules of CDK.

    The method of integrating Lambda functions as a step into your workflow via ARN has been deprecated by the team. They have chosen to support integrating via function name. For reference see issue

    This means that the payloads coming back from the Lambda functions contain an extra abstraction layer of data not present in the SAR application.

    To make this work without rewriting the Lambda functions so that I can always pull the latest code on every build I had to introduce adapters between the step function Lambda tasks to strip out this abstraction layer. This is their only purpose

    stepfunction flow

    Install

    npm i cdk-lambda-powertuner

    DownloadsWeekly Downloads

    6

    Version

    0.2.2

    License

    Apache-2.0

    Unpacked Size

    1.14 MB

    Total Files

    50

    Last publish

    Collaborators

    • avatar