{"id":18547768,"url":"https://github.com/bluepeter/aws-lambda-invoke-step-function","last_synced_at":"2025-05-15T07:34:28.929Z","repository":{"id":79017989,"uuid":"91869328","full_name":"bluepeter/aws-lambda-invoke-step-function","owner":"bluepeter","description":"A simple boilerplate to invoke AWS Step Functions from AWS Lambda.","archived":false,"fork":false,"pushed_at":"2017-05-21T15:09:32.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T04:38:41.083Z","etag":null,"topics":["aws-lambda","aws-sdk","aws-step-function","node-lambda","serverless"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluepeter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-05-20T06:13:27.000Z","updated_at":"2017-12-13T14:39:16.000Z","dependencies_parsed_at":"2023-02-24T19:15:40.004Z","dependency_job_id":null,"html_url":"https://github.com/bluepeter/aws-lambda-invoke-step-function","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluepeter%2Faws-lambda-invoke-step-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluepeter%2Faws-lambda-invoke-step-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluepeter%2Faws-lambda-invoke-step-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluepeter%2Faws-lambda-invoke-step-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluepeter","download_url":"https://codeload.github.com/bluepeter/aws-lambda-invoke-step-function/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254296708,"owners_count":22047337,"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":["aws-lambda","aws-sdk","aws-step-function","node-lambda","serverless"],"created_at":"2024-11-06T20:31:16.053Z","updated_at":"2025-05-15T07:34:28.895Z","avatar_url":"https://github.com/bluepeter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js Lambda Function To Invoke AWS Step Function\n\nThis is a simple Node.js AWS Lambda seed that invokes an AWS Step Function. It\nuses [node-lambda](https://github.com/motdotla/node-lambda) for locally running\nand deploying.\n\nAWS Step Functions are a great way to maintain state and orchestrate AWS Lambda\nfunctions. However, currently, invoking a Step Function is limited to, e.g.,\nAPI Gateway, Cloudwatch, etc. The purpose of this repo is to serve as a means\nto invoke a Step Function from a Lambda function. This way, if you want to, for\nexample, invoke a Step Function from SES, this function can serve as the\nconduit.\n\n### To use:\n\n1. `npm i -g aws-sdk` to install AWS SDK if you haven't already.\n2. `npm i` in repo directory to build node modules.\n3. Configure aws-sdk in your home directory. Ensure the Lambda-controlling\n   `aws_access_key_id` and `aws_secret_access_key` are in, e.g., `~/.aws`. This\n   way you don't have to keep this in `.env` which I prefer to keep in version\n   control.\n4. Create an AWS Lambda function on AWS. Edit `.env` and `package.json` with\n   your Lambda function name.\n5. Create an AWS IAM Role with a Lambda trusted relationship. Give it\n   permissions for Step Functions. Edit `.env` to add the role.\n6. Create a Hello World Step Function. Edit `index.js` with the ARN of this\n   Step Function.\n7. `npm run start` to run it locally! It works, right? Great!\n8. `npm run deploy` to push into the cloud...\n9. Test that everything works by executing the Lambda function from AWS\n   Console.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluepeter%2Faws-lambda-invoke-step-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluepeter%2Faws-lambda-invoke-step-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluepeter%2Faws-lambda-invoke-step-function/lists"}