auto-tag icon indicating copy to clipboard operation
auto-tag copied to clipboard

Lambda user agent

Open ecout opened this issue 3 years ago • 3 comments

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.

ecout avatar Apr 22 '21 20:04 ecout

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.

ecout avatar Apr 22 '21 20:04 ecout

Have to break regex processing line into multiple ones to pass travis-ci linter build.

ecout avatar Apr 22 '21 20:04 ecout

travis still not happy with this one

rayjanoka avatar Feb 03 '22 05:02 rayjanoka

we got it to node 18 today. thanks though!

rayjanoka avatar Dec 13 '22 16:12 rayjanoka