Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created June 2, 2020 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaszkorecki/b59bfab4e5a3a25a47f3933fe01ee662 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/b59bfab4e5a3a25a47f3933fe01ee662 to your computer and use it in GitHub Desktop.
(gen-class
:name "ecs_notify.Core"
:implements [com.amazonaws.services.lambda.runtime.RequestStreamHandler])
(defn -handleRequest
[_this input output ctx]
(let [logger (.getLogger ctx)
payload (unwrap-payload input)]
(notify-slack logger payload)
(with-open [o (io/writer output)]
(.write o (json/generate-string {:message "ack"})))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment