Skip to content

Commit 35ed71c

Browse files
Merge pull request #7 from miroculus/feature/run-as-worker
2 parents 7782921 + 5835928 commit 35ed71c

13 files changed

+246
-312
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:8.10
1+
FROM node:12.10
22

3-
ARG NPM_TOKEN={$NPM_TOKEN}
3+
ARG NPM_TOKEN=${NPM_TOKEN}
44

55
WORKDIR /src
66

README.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,20 @@ In order to fully take advantage of the potential, you should Tag your resources
2727
<date> - Amazon Elastic Compute Cloud (): $<value>
2828
```
2929

30-
## Instructions
30+
## Installation & Run
3131

32-
This function could be set to be used as standalone, but the way we use it is by setting a [AWS Cloudwatch](https://aws.amazon.com/cloudwatch/), and a [AWS Lambda](https://aws.amazon.com/lambda/) function
32+
After cloning the code, you just need to run
3333

34-
Since this project uses `node_modules`, we have 2 ways of passing the code to [AWS Lambda](https://aws.amazon.com/lambda/)
34+
```bash
35+
## To install npm packages
36+
npm i
3537

36-
- Uploading to [AWS S3](https://aws.amazon.com/s3/)
37-
- Creating a ZIP file and uploading to Lambda (We usually use this, but could be changed)
38+
## To run Daily Report
39+
npm run report:daily
3840

39-
## Installation
40-
41-
- Create a ZIP file
42-
- Upload to [AWS Lambda](https://aws.amazon.com/lambda/)
43-
- Set the [AWS Cloudwatch](https://aws.amazon.com/cloudwatch/) to call the function on the desired period of time
44-
- You are all set
41+
## To run Monthly Report
42+
npm run report:monthly
43+
```
4544

4645
## Neccesary envars
4746

common.js

-65
This file was deleted.

daily_report.js

-71
This file was deleted.

daily_report.package.json

-18
This file was deleted.

deploy.sh

-35
This file was deleted.

monthly_report.js

-68
This file was deleted.

monthly_report.package.json

-18
This file was deleted.

0 commit comments

Comments
 (0)