esanchezm / amazon-cloudwatch-to-slack

Relay alerts from Amazon CloudWatch to a Slack.com room.
GNU General Public License v2.0
63 stars 10 forks source link

Slack Webhook Url #3

Open nikilster opened 9 years ago

nikilster commented 9 years ago

Hey! This service looks really awesome - nicely done! Also the deploy to Heroku button is super clutch!

Seems like slack has now started implementing web hooks differently and gives you a url instead of a token. Can you confirm this for me? I searched through the docs and it seems like the webhook url is the new way there are doing it.

Might be an easy change if so - just wanted to make sure I was understanding it correctly - thanks!

esanchezm commented 9 years ago

Hi Nikil,

Thanks for your compliment, I didn't write the original code but adapted to our needs. Amazon has recently launched Lambda which seems to be the perfect replacement for this software.

Regarding the new webhooks, I'm looking to the new Slack integrations and you're right, they don't provide a token anymore. Anyway, it looks like you can guess it from the URL they provide:

https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/<THIS_IS_THE_TOKEN>

I'd try to update te code to use the new system. Thanks for the report!