Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

pgexport-awslambda

Generic postgreSQL export lambda microservice.

Pass it a postgreSQl URL and queries with an s3 destination and voila!

###Usage Uses AWS Lambda's basic execution mode to invoke an export.

{
  "pgurl": "postgres://localhost/afgo_dev",
  "rds":
        {
            "securityGroup" : "pg-lambda"
        },
  "queries": [
    {
      "filename": "plot.csv",
      "sql": "SELECT * FROM app.export_as_csv('psp.plot', 'APLY')"
    }
  ],
  "bucket": "pgexport-awslambda",
  "key": "9d4e9ddf-28cb-45a1-8e17-748694831155.zip"
}

###test Update the test.js event object for your environment.

$ node ./test.js

###Publishing Update the ./script/publi.sh script for your environment.

$ bash ./scripts/publish.sh

About

Generic postgreSQL export lambda microservice.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.