| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Lambda function to pull data from Postgres database and dump to Google Spreadsheet
More context in this blog post
Clone the repository and run
$ npm install
$ npm install -g serverlessMake sure the environment variables as present in pgClient.js are populated correctly.
Review the contents of config.json to add the source of importing data.
Make sure you have the following setup in place on ur machine before executing the script:
$ SLS_DEBUG=* serverless invoke local --function lambda_sheetsTo 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
$ serverless deployThe deployment script should exit with status code 0.
| Back | FazBrowse Home | New Git URL |