Hello, For slack notification to work, Flyte Admin...
# ask-the-community
f
Hello, For slack notification to work, Flyte Admin needs to be configured just like email notification. However, I don’t see any explanation for configuring slack on the following doc. It only does for email. Could someone share the details for slack notification configs? Thanks! https://docs.flyte.org/en/latest/deployment/configuration/notifications.html
f
Hey! I’ve been trying this out. After configuring SNS and SQS, and adding the launch plan notifications section, I’m getting a notification in Slack. However, I’m seeing the message encoded in base64. Maybe I’m missing something?
s
Can you share with us the
notifications
config? cc @Kevin Su
f
Gladly:
Copy code
notifications:
  type: "aws"
  region: "eu-west-1"
  publisher:
    topicName: "arn:aws:sns:eu-west-1:12345:company-name-dev-flyte-flyte-notifications-sns"
  processor:
    queueName: "company-name-dev-flyte-flyte-notifications-sqs"
    accountId: "12345"
  emailer:
    subject: "Notice: Execution \"{{ workflow.name }}\" has {{ phase }} in \"{{ domain }}\"."
    sender:  "<mailto:alerts-flyte-aaaae4ziduoddirbmozfojj6uy@company-name.slack.com|alerts-flyte-aaaae4ziduoddirbmozfojj6uy@company-name.slack.com>"
    body: >
      Execution \"{{ workflow.name }} [{{ name }}]\" has {{ phase }} in \"{{ domain }}\". View details at
      <a href=\<http://flyte.company-name.com/console/projects/{{> project }}/domains/{{ domain }}/executions/{{ name }}>
      <http://flyte.company-name.com/console/projects/{{> project }}/domains/{{ domain }}/executions/{{ name }}</a>. {{ error }}
And a follow-up question. We don’t need to explicitly define to notify in the launchplan if setting the global config for notifications, right?
s
I think you have to but will defer to @Kevin Su @Eduardo Apolinario (eapolinario)
Bumping this thread.
f
So, updates from my side: 1. I compared with and without defining explicitly the notifications through a launch plan, and without defining them, notifications are not sent. That would make sense as in the admin config the recipient is not defined, so there would be no way of knowing who should receive the notifications 2. The base64 problem happens if we create a custom email subscription. WIth Flyte’s suggested setup, it works fine 👍 Overall I think the experience for this can be improved, but we can continue that debate here if you agree
s
Of course!
104 Views