dashboard-export
v0.1.2
Published
lambda function for dashboard-export
Downloads
2
Readme
DASHBOARD EXPORT
How To Use:
make sure you will be using NODE 6.10 NO EXCEPTIONS!
npm run build
upload to lambda the zip file
example implementation in test.js
sample payload
{
"AWS_ACCESS_KEY_ID": "AWS_ACCESS_KEY_ID",
"AWS_SECRET_ACCESS_KEY": "AWS_SECRET_ACCESS_KEY",
"Bucket": "space-buckets",
"checklists": [
{
"id": 158,
"with": [
{
"agentId": [1,2],
"propertyId": [1,2],
},
],
"startDate": "2017-07-02T16:00:00.000Z",
"endDate": "2017-07-18T16:00:00.000Z"
},
],
"db": {
"address": "rds.somewhere.org",
"username": "username",
"password": "password",
"name": "mewe"
}
}
DEVELOPMENT
create container that is connected to your v2_database_1 container
docker run -itd --link v2_database_1:db --name dashboard-export -v `pwd`:/app -w /app --network=v2_default node:6.10.3
docker exec -it dashboard-export bash
yarn