{"id":16955653,"url":"https://github.com/rcdexta/lambda-google-sheets","last_synced_at":"2025-04-11T21:33:50.814Z","repository":{"id":138670906,"uuid":"163784232","full_name":"rcdexta/lambda-google-sheets","owner":"rcdexta","description":"Lambda function to pull data from Postgres DB and dump to Google Spreadsheet","archived":false,"fork":false,"pushed_at":"2020-02-16T07:55:07.000Z","size":12,"stargazers_count":22,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T17:47:01.096Z","etag":null,"topics":[],"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/rcdexta.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-01-02T02:20:56.000Z","updated_at":"2025-01-09T13:03:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3a016a1-d5ef-4641-9540-035e144115c6","html_url":"https://github.com/rcdexta/lambda-google-sheets","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/rcdexta%2Flambda-google-sheets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Flambda-google-sheets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Flambda-google-sheets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Flambda-google-sheets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rcdexta","download_url":"https://codeload.github.com/rcdexta/lambda-google-sheets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248483491,"owners_count":21111460,"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":[],"created_at":"2024-10-13T22:12:53.147Z","updated_at":"2025-04-11T21:33:50.804Z","avatar_url":"https://github.com/rcdexta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lambda-google-sheets\nLambda function to pull data from Postgres database and dump to Google Spreadsheet\n\nMore context in this [blog post](https://blog.bitsrc.io/serverless-function-to-sync-data-from-a-database-to-google-spreadsheet-c71af04a1a34)\n\n### Installation\n\nClone the repository and run \n\n```bash\n$ npm install\n$ npm install -g serverless\n```\n\nMake sure the environment variables as present in `pgClient.js` are populated correctly. \n\n### Configuration\n\nReview the contents of `config.json` to add the source of importing data.\n\n### Testing Locally\n\nMake sure you have the following setup in place on ur machine before executing the script:\n\n* have node 8.10 runtime or higher \n* you have a local tunnel to DWH available on port 5439\n* you have the AWS KEY and SECRET available in ~/.aws/credentials\n\n```bash\n$ SLS_DEBUG=* serverless invoke local --function lambda_sheets\n```\n\n\n### Deployment\n\nTo deploy the function to AWS, make sure aws_access_key_id, aws_secret_access_key and region are passed as environment vars to deploy command or configured in ~/.aws/config\n\n```bash\n$ serverless deploy\n```\n\nThe deployment script should exit with status code 0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcdexta%2Flambda-google-sheets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frcdexta%2Flambda-google-sheets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcdexta%2Flambda-google-sheets/lists"}