alertlogic/paws-collector ? reverse-engineered prompt

Reverse engineered prompt

Build me a Node.js project for an AWS based log collector that I can deploy with CloudFormation. It should run as a set of Lambda functions that can poll third party service APIs, collect logs, and forward them to Alert Logic for ingestion. I need one function that keeps the collector package up to date on a schedule, one that does the actual collection when it gets a message, and one that sends a regular health check so I can see the collector is alive.

Make it easy to add new collector types from a simple command, and include the scripts and build flow to package each collector into a Lambda zip. Please also include local testing support, example event files, and the files needed to run it with AWS SAM. If you need to check current AWS or Node.js details, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab