AWS SNS with Slack WITHOUT AWS Lambda
ฝัง
- เผยแพร่เมื่อ 11 ก.ค. 2024
- AWS SNS with slack WITHOUT AWS Lambda.
AWS SNS slack notifications
AWS Textract Async: • Textract tutorial (NEW...
Steps to follow:
- Create slack channel or use existing channel
- Create a work flow with selecting Webhook
- Create a variable name as "SubscribeURL". The name is very important
- Add the above variable in the message body of the workflow
- Publish the workflow and get the url
- Add the above Url as subscription of the SNS
- You will see the subscription URL in the slack channel
- Follow the URl and complete the subscription
- Come back to the work flow and change the variable to "Message"
- The publish the message in SNS. you will see the message in the slack channel.
Enjoy....
Great video, very useful. Congrats!
Thanks 👍👍👍
Great video. I was using Lambda to intergrate SNS and SLACK. This way is awesome.no need extra Lambda. Thanks.
Great video. I was using Lambda to integrate SNS with Slack. This is way better as no need extra Lambda all. Thanks
This was very useful, thank you!
Thanks for the comment
Thank you so much sir
Great video, thank you!
Thanks 🙏 mate
Thank you so much, that did the job!
Glad that helps you. Nice 👍 👍👍
Brilliant Sir. Bravo!
Great mate. 👍
You are a life saver , Brilliant
Great that helps you ✌️👍
Men, you safe my day.
They changed the way how you can work with Worck space. But In General will be great same video but about SNS Alarms.
Cool, thanks
Thank you so much. Great video, helped me to resolve the issue I was facing.
Great to hear @asanka. Glad that helps 👍👍👍. Thanks
Thanks for a great tutorial!
Thanks @Chad. Glad it help you :) :)
Nice Video. Very helpful.
Glad it was helpful! Thanks
thanks, it was great
You're welcome! Thanks Vinod
Great
Thanks mate :)
Thats very cool
Thanks @orhn. :) :)
Great video, but we’ll probably need a lambda if we want to make it event driven
Thanks for the comment Rafsan. That is true
Is it a requirement that the message from SNS contain all of the Keys you list in the integration in order for the message to display in the Slack channel? I'm curious what would have happened if you included both SubscribeURL and Message in your initial configuration of the workflow.
Hi @danielmdubois ,
It is NOT mandatory to include all the keys in SNS message. You can pick which ever you like to show. BTW, to confirm the subscription, you have to have the SubscribeURL.
Great video 🎉 how to send message to SNS topic then process the message
Hey mate, Do you mean that sending message to SNS from Slack or different source?
Hi @@lovetocode4486
I meant Slack channel to SNS. Now a days, I tried to explore slack workflows and developer options. So whenever a message posted to particular private slack channel it needs to trigger lambda after getting approval (like 5 thumbs-up) to the message. The message posted in slack channel need to pass as a payload. So I thought of sending message to SNS and write approval logic there. Is there any easy workflow for it, any suggestions would be helpful
Initially I thought of using sqs but it only for public channel, so dropped the idea
But in slack channel, organization's won't allow webhook integration, instead from slack app we need to do, there we cannot do this kind of subscribeURL etc steps you mentioned. In this case what we can do we have to use lamba only right
Basically I don't find webhook integration in "choose a way to start this workflow"
Only basic 4ways are there shortcut, New channel member, emoji reaction, schedule date & time. Instead in slack api we have webhook integration in incoming webhooks option.
Hope you got what I am saying
@@Lucky_and_Sunny_vlogs Yes, I got your point. Slack "Workflow" is a feature of pro version. It doesn't come with free slack version.
As you mentioned if the organisation doesn't allow to create Webhook using "Workflow", better to go with Slack "App" option. That gives a Webhook URL. But you have to use LAMBDA between SNS and SLACK. The Lambda will format the payload and send to SLACK app.
This is how you need to create Lambda: aws.amazon.com/premiumsupport/knowledge-center/sns-lambda-webhooks-chime-slack-teams/
Hope this helps. Thanks
I want to get the aws console login alarm. i can't get the alarm as per your video. do i need to enable eventbridge and cloudtrail?
By default, the cloudtrail is on. are you able to see any logs(login access) in the cloudtrail events?
Can you help with this "How to move complete data from the "source" folder to the "destination" folder in the same S3 bucket, excluding data from the last two days" (That is automation actually I want to automate this step so that automatically data will be moved into destination folder without manual intervention.
Hi RaghulInfosoft,
AWS S3 bucket has functionality called "Lifecycle rules" which can be very easily used for your scenario. You dont need any code at all. Just a configuration which allow you to copy the data from folder to another. Please have this look. Thanks. docs.aws.amazon.com/AmazonS3/latest/userguide/how-to-set-lifecycle-configuration-intro.html
Okay let me see first thanks
nice thanks !
how to do it on Microsoft Teams with out lambda?
Hi Narayanan,
You have to follow the same steps. As far as you can get webhook url for Teams, then rest of the things are same.
This video show how to create WebHook Url in Teams. learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=dotnet
Hope this helps. Thanks
But how can we format this message? I think it's not possible
Hi Toma,
If you refer this point in the video th-cam.com/video/CszzQcPAqNM/w-d-xo.html, you can do formatting here.
@@lovetocode4486 How can we format the content that's inside the variable? I'm talking about the message sent by SNS to slack. That Message variable
@@OpenSourceGeorgia I doubt that you can format the message inside the variable. If you want to do such customisation, likely you have to use Lambda.
@@lovetocode4486 Yeah that's right, I decided to use Lambda