Skip to content

Commit 1ea1ec8

Browse files
author
impart-security
committed
Update aws log forwarder
1 parent ce74b41 commit 1ea1ec8

File tree

7 files changed

+90
-50
lines changed

7 files changed

+90
-50
lines changed

.eslintrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"root": true,
23
"env": {
34
"browser": false,
45
"es2021": true,

.github/workflows/release.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- "v*"
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repo
12+
uses: actions/checkout@v4
13+
- name: Setup Node
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
- name: Package
18+
run: |
19+
npm ci
20+
zip -r aws-log-forwarder.zip . -i "*.js" "*.json" "node_modules" VERSION LICENSE
21+
- name: Release
22+
uses: softprops/action-gh-release@v2
23+
with:
24+
files: |
25+
aws-log-forwarder.zip

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.2.0] - 2024-04-03
4+
5+
### Added
6+
7+
- Publish to github releases
8+
39
## [0.1.0] - 2023-08-28
410

511
### Added

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Lambda function to stream ec2 loadbalancer access logs and cloudwatch logs to im
1818
INSPECTOR_MODE: "log_stream_server"
1919
INSPECTOR_LOGSTREAM_LISTEN_ADDR: ":<port>"
2020
INSPECTOR_LOGSTREAM_ID: "<log_binding_logstream_ID>" # from step 1
21-
INSPECTOR_API_ACCESS_TOKEN: "<access_token>" # setup here https://console.impartsecurity.net/orgs/_/settings/tokens#create. Click `New inspector access token`, click `Inspector access` to set the scopes.
21+
INSPECTOR_API_ACCESS_TOKEN: "<access_token>" # setup here https://console.impartsecurity.net/orgs/_/access-tokens#create. Click `New inspector access token`, click `Inspector access` to set the scopes.
2222
```
2323

2424
3. Run the lambda function subscribed either to cloud watch events or elb s3 events.

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.2.0

package-lock.json

+53-45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"lint": "eslint . --cache --ext .js --max-warnings=0"
1111
},
1212
"dependencies": {
13-
"aws-sdk": "^2.1467.0"
13+
"aws-sdk": "^2.1589.0"
1414
},
1515
"devDependencies": {
16-
"eslint": "^8.50.0",
17-
"prettier": "^3.0.2"
16+
"eslint": "^8.57.0",
17+
"prettier": "^3.2.5"
1818
}
1919
}

0 commit comments

Comments
 (0)