Skip to content

Commit

Permalink
Update aws log forwarder
Browse files Browse the repository at this point in the history
  • Loading branch information
impart-security committed Apr 4, 2024
1 parent ce74b41 commit 1ea1ec8
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 50 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"root": true,
"env": {
"browser": false,
"es2021": true,
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release
on:
push:
tags:
- "v*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Package
run: |
npm ci
zip -r aws-log-forwarder.zip . -i "*.js" "*.json" "node_modules" VERSION LICENSE
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
aws-log-forwarder.zip
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.2.0] - 2024-04-03

### Added

- Publish to github releases

## [0.1.0] - 2023-08-28

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Lambda function to stream ec2 loadbalancer access logs and cloudwatch logs to im
INSPECTOR_MODE: "log_stream_server"
INSPECTOR_LOGSTREAM_LISTEN_ADDR: ":<port>"
INSPECTOR_LOGSTREAM_ID: "<log_binding_logstream_ID>" # from step 1
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.
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.
```

3. Run the lambda function subscribed either to cloud watch events or elb s3 events.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.2.0
98 changes: 53 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"lint": "eslint . --cache --ext .js --max-warnings=0"
},
"dependencies": {
"aws-sdk": "^2.1467.0"
"aws-sdk": "^2.1589.0"
},
"devDependencies": {
"eslint": "^8.50.0",
"prettier": "^3.0.2"
"eslint": "^8.57.0",
"prettier": "^3.2.5"
}
}

0 comments on commit 1ea1ec8

Please sign in to comment.