ks888 / LambStatus

[Maintenance mode] Serverless Status Page System
https://lambstatus.github.io
Apache License 2.0
1.3k stars 119 forks source link

Why is the lambda function for PostIncidents 20,000 lines long? #143

Open dmasters19 opened 5 years ago

dmasters19 commented 5 years ago

I think this project is great, but I was trying to figure out how I could automate a POST to the incidents page if one of my cloudwatch alarms goes off. I tried looking at the lambda function for incidents and was overwhelmed. Why is it 20,000 lines long?

ks888 commented 5 years ago

Ummm, maybe we need some modern optimization for generated js.

By the way, we have the API to POST incidents: https://lambstatus.github.io/apidocs/#create-a-new-incident