{"id":22556212,"url":"https://github.com/ayusharma-ctrl/aws-lambda-node-postgresql-template","last_synced_at":"2026-04-07T09:31:59.626Z","repository":{"id":222712732,"uuid":"758173728","full_name":"ayusharma-ctrl/AWS-Lambda-Node-PostgreSQL-Template","owner":"ayusharma-ctrl","description":"A template to create your AWS Lambda function using Node.js. It covers how to connect to a PostgreSQL database, write queries, fetch results, and send a request to the desired endpoint.","archived":false,"fork":false,"pushed_at":"2024-02-15T19:14:31.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T05:07:36.351Z","etag":null,"topics":["aws","aws-eventbridge-scheduler","aws-lambda","aws-lambda-node","nodejs","postgresql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ayusharma-ctrl.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":"2024-02-15T19:10:38.000Z","updated_at":"2024-12-20T11:46:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c8a691b-77a1-4003-ba07-b7c0c06a02aa","html_url":"https://github.com/ayusharma-ctrl/AWS-Lambda-Node-PostgreSQL-Template","commit_stats":null,"previous_names":["ayusharma-ctrl/aws-lambda-node-postgresql-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ayusharma-ctrl/AWS-Lambda-Node-PostgreSQL-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayusharma-ctrl%2FAWS-Lambda-Node-PostgreSQL-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayusharma-ctrl%2FAWS-Lambda-Node-PostgreSQL-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayusharma-ctrl%2FAWS-Lambda-Node-PostgreSQL-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayusharma-ctrl%2FAWS-Lambda-Node-PostgreSQL-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayusharma-ctrl","download_url":"https://codeload.github.com/ayusharma-ctrl/AWS-Lambda-Node-PostgreSQL-Template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayusharma-ctrl%2FAWS-Lambda-Node-PostgreSQL-Template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31508008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","aws-eventbridge-scheduler","aws-lambda","aws-lambda-node","nodejs","postgresql"],"created_at":"2024-12-07T19:11:35.790Z","updated_at":"2026-04-07T09:31:59.603Z","avatar_url":"https://github.com/ayusharma-ctrl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS-Lambda-Node-PostgreSQL-Template\nA template to create your AWS Lambda function using Node.js. It covers connecting to a PostgreSQL database, writing queries, fetching results, and sending a request to the desired endpoint.\n\n1. Create an 'index.js' file.\n2. Install the pg module using the command 'npm install pg' – this will generate the 'node_modules' folder and a 'package-lock.json' file.\n3. Define the exports.handler method to execute the code.\n4. Add and import all variables related to your server and database.\n5. Establish a connection with your database.\n6. Write a query and fetch the data.\n7. Disconnect from the database if access is no longer needed.\n8. Implement another method to send a request to your server's endpoint.\n9. Once you have finished writing the code, compress the contents of your project's root folder and upload the zip file to your Lambda function.\n10. Create a new scheduler in Amazon EventBridge to trigger this Lambda function.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayusharma-ctrl%2Faws-lambda-node-postgresql-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayusharma-ctrl%2Faws-lambda-node-postgresql-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayusharma-ctrl%2Faws-lambda-node-postgresql-template/lists"}