Skip to content

Commit dc3d25a

Browse files
committed
README and node version updated
1 parent f33b61d commit dc3d25a

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -27,13 +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-
// TO FOLLOW
32+
After cloning the code, you just need to run
3333

34-
## Installation
34+
```bash
35+
## To install npm packages
36+
npm i
3537

36-
// TO FOLLOW
38+
## To run Daily Report
39+
npm run report:daily
40+
41+
## To run Monthly Report
42+
npm run report:monthly
43+
```
3744

3845
## Neccesary envars
3946

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-cost-explorer",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1",

src/daily.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ if (!process.env.AWS_ACCOUNT_ID) throw new Error('Error running the report: AWS_
2424
acum = []
2525
acumDay = 0
2626

27-
let parser = parse({
28-
delimiter: ','
29-
}, function (err, data) {
27+
let parser = parse({ delimiter: ','}, function (err, data) {
3028
if (err) throw new Error(err)
3129

3230
let columnHeaders = common.getColumnPositions(data[0])

src/monthly.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ let acumTotal = 0
1616
KEY = KEY.replace('%', thisMonth)
1717
FILE = FILE.replace('%', thisMonth)
1818

19-
acum = []
20-
2119
if (!process.env.COST_REPORTS_BUCKET) throw new Error('Error running the report: COST_REPORTS_BUCKET envar not set')
2220
if (!process.env.SLACK_CHANNEL) throw new Error('Error running the report: SLACK_CHANNEL envar not set')
2321
if (!process.env.AWS_ACCOUNT_ID) throw new Error('Error running the report: AWS_ACCOUNT_ID envar not set')
2422

23+
acum = []
24+
2525
let parser = parse({delimiter: ','}, function (err, data) {
2626
if (err) throw new Error(err)
2727

0 commit comments

Comments
 (0)