code-pipeline-slack
code-pipeline-slack copied to clipboard
Can not send Slack message
Hi there,
I have been setup Lambda and Codepipelines successfully and the Cloudwatch Event is working now. The Slack Tokens are work with #builds channel as well.
However, Lambda function seems not works, I always received an error message like this:
list indices must be integers, not str: TypeError
Traceback (most recent call last):
File "/var/task/notifier.py", line 98, in run
m = process(event)
File "/var/task/notifier.py", line 90, in process
if event['source'] == "aws.codepipeline":
TypeError: list indices must be integers, not str
Anyone knows why?
Thank you so much!
Same stuff
Looks like it's due this deprecations https://api.slack.com/methods/channels.list