-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update name generation * update readme * update yml file * stage commit * add region, geolocation, update CF template to add policy to retrive data from s3 bucket, fix type * updates based on comments * update error message
- Loading branch information
Showing
11 changed files
with
237 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
module.exports = { | ||
regionData: { | ||
'us-east-1': { | ||
geoip: { | ||
location: [-78.024902, 37.926868], | ||
}, | ||
}, | ||
'us-east-2': { | ||
geoip: { | ||
location: [-82.996216, 40.367474], | ||
}, | ||
}, | ||
'us-west-1': { | ||
geoip: { | ||
location: [-119.417931, 36.778259], | ||
}, | ||
}, | ||
'us-west-2': { | ||
geoip: { | ||
location: [-120.5, 44.0], | ||
}, | ||
}, | ||
'ap-south-1': { | ||
geoip: { | ||
location: [72.877426, 19.07609], | ||
}, | ||
}, | ||
'ap-northeast-3': { | ||
geoip: { | ||
location: [135.484802, 34.672314], | ||
}, | ||
}, | ||
'ap-northeast-2': { | ||
geoip: { | ||
location: [127.024612, 37.5326], | ||
}, | ||
}, | ||
'ap-southeast-1': { | ||
geoip: { | ||
location: [103.851959, 1.29027], | ||
}, | ||
}, | ||
'ap-southeast-2': { | ||
geoip: { | ||
location: [151.2099, -33.865143], | ||
}, | ||
}, | ||
'ap-northeast-1': { | ||
geoip: { | ||
location: [139.839478, 35.652832], | ||
}, | ||
}, | ||
'ca-central-1': { | ||
geoip: { | ||
location: [-73.561668, 45.508888], | ||
}, | ||
}, | ||
'eu-central-1': { | ||
geoip: { | ||
location: [8.682127, 50.110924], | ||
}, | ||
}, | ||
'eu-west-1': { | ||
geoip: { | ||
location: [-6.266155, 53.35014], | ||
}, | ||
}, | ||
'eu-west-2': { | ||
geoip: { | ||
location: [-0.118092, 51.509865], | ||
}, | ||
}, | ||
'eu-west-3': { | ||
geoip: { | ||
location: [2.349014, 48.864716], | ||
}, | ||
}, | ||
'eu-north-1': { | ||
geoip: { | ||
location: [18.06324, 59.334591], | ||
}, | ||
}, | ||
'sa-east-1': { | ||
geoip: { | ||
location: [-46.62529, -23.533773], | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
const loggerGenerator = () => { | ||
const loggerGenerator = (regionData) => { | ||
return require('logzio-nodejs').createLogger({ | ||
token: process.env.TOKEN, | ||
protocol: 'https', | ||
host: process.env.LISTENER_URL, | ||
port: '8071', | ||
type: 'syntetic-scripting', // OPTIONAL (If none is set, it will be 'nodejs') | ||
type: 'synthetic-scripting', // OPTIONAL (If none is set, it will be 'nodejs') | ||
sendIntervalMs: 1000, | ||
extraFields: { | ||
aws_region: process.env.REGION, | ||
...regionData, | ||
}, | ||
}); | ||
}; | ||
module.exports = loggerGenerator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.