auto-tag
auto-tag copied to clipboard
Lambda user agent
Two AWS API endpoints don't support User Agent Fields that come in the Cloud Trail events in their original format:
- AWS Lambda Itself (characters like comma, parenthesis, etc) are not supported by the Lambda Tagging API.
- AWS S3 (the braces [] characters are not supported by the API)
The following fix looks for the user agent fieldname in the default worker and replaces all possible invalid characters at the parent class level, rather than dealing with each worker, thus future workers can be added.
Also, because NodeJS 10.x is reaching EOL by end of April, the Cloud Formation template was moved to NodeJS 14.x which is the latest version AWS Lambda supports.
Have to break regex processing line into multiple ones to pass travis-ci linter build.
travis still not happy with this one
we got it to node 18 today. thanks though!