{"id":18547764,"url":"https://github.com/bluepeter/aws-lambda-nodejs-boilerplate","last_synced_at":"2025-07-23T04:03:33.470Z","repository":{"id":79017991,"uuid":"84822272","full_name":"bluepeter/aws-lambda-nodejs-boilerplate","owner":"bluepeter","description":"Simple seed to get your AWS Lambda function into the cloud.","archived":false,"fork":false,"pushed_at":"2017-05-22T07:07:54.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-20T10:02:59.624Z","etag":null,"topics":["aws-lambda","aws-sdk","cloud","node-lambda","nodejs","serverless"],"latest_commit_sha":null,"homepage":"","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-03-13T12:09:45.000Z","updated_at":"2022-05-04T23:02:31.000Z","dependencies_parsed_at":"2023-02-24T19:30:19.709Z","dependency_job_id":null,"html_url":"https://github.com/bluepeter/aws-lambda-nodejs-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bluepeter/aws-lambda-nodejs-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluepeter%2Faws-lambda-nodejs-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluepeter%2Faws-lambda-nodejs-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluepeter%2Faws-lambda-nodejs-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluepeter%2Faws-lambda-nodejs-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluepeter","download_url":"https://codeload.github.com/bluepeter/aws-lambda-nodejs-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluepeter%2Faws-lambda-nodejs-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266614306,"owners_count":23956341,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","cloud","node-lambda","nodejs","serverless"],"created_at":"2024-11-06T20:31:14.180Z","updated_at":"2025-07-23T04:03:33.357Z","avatar_url":"https://github.com/bluepeter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple AWS Lambda Node.js Boilerplate\n\nThis is a simple Node.js AWS Lambda seed to get you going. It uses\n[node-lambda](https://github.com/motdotla/node-lambda) for locally running and\ndeploying. It logs with Bunyan, and has a simple async waterfall in it's\n`index.js` to give you one approachin handling flow control in a Lambda\nfunction.\n\n### Basic\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. `npm run start` to try it out (locally)! Everything works, right? Good!\n   Let's get it into the cloud...\n4. 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.\n5. Create a Lambda function on AWS. Edit `.env` to your Lambda function; and\n   function name in `package.json`.\n6. `npm run deploy` to push into the cloud...\n7. Go to AWS Lambda console and test if it works. It does, right? Great! Start\n   editing `index.js` to whatever you want. You can mock data in `event.json`.\n   Look at `deploy.env.example` if you want to send along secret variables\n   (change name to `deploy.env`) that don't go to git.\n\n### Advanced\n\n8. Go to the AWS Lambda console and create two aliases, `PROD` and `STAG`.\n9. Point `STAG` to `$latest` version. This way, whenever you deploy, `STAG`\n   will always use the newest deployment.\n10. Ready to update `PROD`? Use `npm run updateProd` and it will create a new\n    version from  `$latest` and point `PROD` to that version.\n11. How to use this setup? When you invoke a Lambda function from, e.g., API\n    Gateway, you can choose, e.g., `MyFunctionName:PROD`, and use `STAG` for,\n    well, staging or development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluepeter%2Faws-lambda-nodejs-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluepeter%2Faws-lambda-nodejs-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluepeter%2Faws-lambda-nodejs-boilerplate/lists"}