{"id":22118195,"url":"https://github.com/mslosarz/aws-lambda-typescript","last_synced_at":"2025-07-16T12:36:04.163Z","repository":{"id":75257216,"uuid":"170767280","full_name":"mslosarz/aws-lambda-typescript","owner":"mslosarz","description":"Template for lambda function written in TypeScript","archived":false,"fork":false,"pushed_at":"2019-03-18T19:40:48.000Z","size":33,"stargazers_count":12,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T06:51:18.793Z","etag":null,"topics":["aws-lambda","aws-lambda-node","template-project","typescript"],"latest_commit_sha":null,"homepage":null,"language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mslosarz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-02-14T22:32:19.000Z","updated_at":"2024-11-19T13:48:47.000Z","dependencies_parsed_at":"2023-06-05T22:04:21.709Z","dependency_job_id":null,"html_url":"https://github.com/mslosarz/aws-lambda-typescript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mslosarz/aws-lambda-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslosarz%2Faws-lambda-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslosarz%2Faws-lambda-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslosarz%2Faws-lambda-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslosarz%2Faws-lambda-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mslosarz","download_url":"https://codeload.github.com/mslosarz/aws-lambda-typescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslosarz%2Faws-lambda-typescript/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265509580,"owners_count":23779384,"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-lambda-node","template-project","typescript"],"created_at":"2024-12-01T13:48:13.290Z","updated_at":"2025-07-16T12:36:04.121Z","avatar_url":"https://github.com/mslosarz.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is this?\n\nHere you can find template for AWS Lambda written in TS.\n\nTo build project you need to type:\n`npm run all`\nBuild process consists of:\n  - linting project (TSLint)\n  - running tests\n  - generating js files (tsc) \n  - trimming node_modules to production only\n  - creating zip file with lambda code and dependencies (zip is stored in dist directory)\n  \nWhen you have zip file, you can create your lambda function. It can be done by AWS Web Console.\nNavigate to lambda functions, then click `Create Function`, pickup name for you function, and click `Create`.\n\nAWS should redirect you to lambda configuration page. Now to deploy your lambda you need to do the following steps:\n - navigate to section `Function code`, and change `code entry type` to `upload a .zip file`.\n - upload generated lambda.zip\n - set `Runtime` to `Node.js 8.10`\n - change handler to `dist/handler.handler`\n \n That's all :) now you can enjoy playing with lambda written in TypeScript\n \n# There is another way to do that!\nAs you can see this project contains Jenkinsfile so you can easily build and deploy this lambda automatically!\n\n(If you don't have remote jenkins you can spin up your local copy you can find project [here](https://github.com/mslosarz/aws-jenkins))\n\nWhat needs to be done:\n1. create folder in your existing Jenkins e.g. dev/test/prod (it's very important because folder is used to distinguish environment)\n2. Inside folder create the pipeline job (with the name you want), and configure it to use jenkinsfile from this project\n3. Run build!\n\n\n# How to get rid of all created resources?\n\nTo clean up AWS resources you need to navigate AWS Console / cloudformation and delete two stacks `\u003cenv\u003e-ts-lambda` and `\u003cenv\u003e-deployment-bucket`. \nS3 Bucket [will not be deleted automatically](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html) so you need to remove it manual :(  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmslosarz%2Faws-lambda-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmslosarz%2Faws-lambda-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmslosarz%2Faws-lambda-typescript/lists"}