{"id":19466871,"url":"https://github.com/digio/powertune-executor","last_synced_at":"2025-02-25T13:47:53.160Z","repository":{"id":39652627,"uuid":"495614142","full_name":"digio/powertune-executor","owner":"digio","description":"A command line tool that makes it easier to run AWS PowerTune against your Lambdas","archived":false,"fork":false,"pushed_at":"2023-09-14T23:38:06.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-15T04:09:17.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-24T00:19:43.000Z","updated_at":"2022-05-24T00:47:53.000Z","dependencies_parsed_at":"2024-11-10T18:32:37.060Z","dependency_job_id":"6ca1d115-a11d-49c4-824d-39830dfbaecb","html_url":"https://github.com/digio/powertune-executor","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":0.2727272727272727,"last_synced_commit":"277afbeed08801955fefbf126b41229ff34f1142"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digio%2Fpowertune-executor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digio%2Fpowertune-executor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digio%2Fpowertune-executor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digio%2Fpowertune-executor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digio","download_url":"https://codeload.github.com/digio/powertune-executor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240680753,"owners_count":19840302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T18:31:16.218Z","updated_at":"2025-02-25T13:47:53.127Z","avatar_url":"https://github.com/digio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerTune Node Execution script\n\n[![Build](https://github.com/digio/powertune-executor/actions/workflows/gh-pages-deploy.yml/badge.svg)](https://github.com/digio/powertune-executor/actions/workflows/gh-pages-deploy.yml)\n[![NPM Version](https://img.shields.io/npm/v/ptx.svg?style=flat-square)](http://npm.im/ptx)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Open Source Love svg2](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)\n\n[src/ptx.js](src/ptx.js) is a script which calls the [PowerTune](https://github.com/alexcasalboni/aws-lambda-power-tuning) stack inside your current AWS account \nto allow tuning of the AWS Lambdas in that AWS account.\nIt is designed to replace the [execute.sh](https://github.com/alexcasalboni/aws-lambda-power-tuning/tree/master/scripts/execute.sh) script that is provided by PowerTune.\n\n**Note**: PTX will run using the AWS profile that is available in your shell/terminal. Set the `AWS_PROFILE` environment variable to point to the AWS profile that\nyou wish to use this tool in.\n\n## Prerequisite Software\n\n- [Node.js](http://nodejs.org) version 14+ (to use the `npx` tool to run this tool)\n\n## Installation\n\nYou may install this tool globally, or run it via `npx`.\n\n``` shell\n# Global installation\n$ npm i -g ptx\n```\n\n``` shell\n# Run via npx\n$ npx ptx \n```\n\n\n## Usage\n\n``` shell\n# Set your AWS Profile\nexport AWS_PROFILE=my-profile\n\n# This might be required too\nexport AWS_SDK_LOAD_CONFIG=true\n\n# Set an env-var that points to the name of the Power Tune Stack in your AWS Account\nexport PTX_STACK_NAME=serverlessrepo-aws-lambda-power-tuning\n\n# The config-file argument is relative to the current directory\nnpx ptx path/to/powertuneConfig.json\n\n```\n\nSee [configuration information](https://github.com/alexcasalboni/aws-lambda-power-tuning/blob/master/README-INPUT-OUTPUT.md) for the basics, **but note that this Node script adds the following capabilities**:\n- Reference one external JSON or JS files when defining the payload (see [examples/configs/basic.json](examples/configs/basic.json))\n- Reference multiple external JSON or JS files when defining the payload (see [examples/configs/multiInclude.json](examples/configs/multiInclude.json))\n- Pass arguments to included JS files (see [examples/configs/includeFunctionWithArgs.json](examples/configs/includeFunctionWithArgs.json))\n\n## AWS Permissions Required\n\nThis tool uses the `aws-sdk` library to call the following APIs:\n\n- CloudFormation.describeStacks()\n- StepFunctions.startExecution()\n- StepFunctions.describeExecution()\n\nIf you see an AWS permissions error when running `ptx`, check if your AWS account has permission to use these APIs.\n\n## License\n\nThis software is licensed under the APACHE 2.0 License. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigio%2Fpowertune-executor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigio%2Fpowertune-executor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigio%2Fpowertune-executor/lists"}