
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@sei-atl/step-function-executor
Advanced tools
Use this utility to execute serverless Step Functions locally!
This module is installed via npm:
npm install --save-dev step-function-executor
let { Serverless } = require('step-function-executor');
let serverless = new Serverless({ verbose: true });
serverless.load('../serverless.yml', {
stage: 'test'
}).then(() => {
let event = {
context: {
myParam: 'myValue'
}
};
let context = {};
serverless
.getStepFunction()
.execute(event, context)
.then(event => {
console.log('Ending event state:', JSON.stringify(event, null, 2));
});
});
Create a new instance of a Serverless object:
new Serverless(options);
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| options | object | false | optional parameters | |
| options.verbose | boolean | false | false | set to true to log extra information during execution |
Load the serverless.yml configuration file:
[Promise] load(configPath, opt, replace)
Return value: a Promise of a serverless instance loaded from the serverless.yml config file
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| configPath | string | true | Relative path to the serverless.yml file to load | |
| opt | object | false | Serverless variable options ${opt:var} | |
| replace | object | false | Optionally replace other items within the serverless.yml before loading |
Gets a step function by name, or first available, as defined by the serverless.yml config file.
[StepFunction] getStepFunction(name)
Return value: The step function Throws:
Parameters:
| Name | Type | Require | Default | Description |
|---|---|---|---|---|
| name | string | false | If provided, retrieves the step function with the provided name. If not provided, retrieves the first step function that is defined. |
step-function-executor is licensed under the MIT License.
All files located in the node_modules and external directories are externally maintained libraries used by this software which have their own licenses; we recommend you read them, as their terms may differ from the terms in the MIT License.
FAQs
Use this utility to execute serverless Step Functions locally!
The npm package @sei-atl/step-function-executor receives a total of 25 weekly downloads. As such, @sei-atl/step-function-executor popularity was classified as not popular.
We found that @sei-atl/step-function-executor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.