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....

ความคิดเห็น • 51

  • @moliveirabaeta
    @moliveirabaeta 9 วันที่ผ่านมา +1

    Great video, very useful. Congrats!

  • @marinabay3127
    @marinabay3127 ปีที่แล้ว +4

    Great video. I was using Lambda to intergrate SNS and SLACK. This way is awesome.no need extra Lambda. Thanks.

  • @AlexMartin-xm9po
    @AlexMartin-xm9po ปีที่แล้ว +1

    Great video. I was using Lambda to integrate SNS with Slack. This is way better as no need extra Lambda all. Thanks

  • @user-dh1hn7ft5f
    @user-dh1hn7ft5f 10 หลายเดือนก่อน +1

    This was very useful, thank you!

    • @lovetocode4486
      @lovetocode4486  10 หลายเดือนก่อน

      Thanks for the comment

  • @MyStudios4u
    @MyStudios4u 8 หลายเดือนก่อน +1

    Thank you so much sir

  • @SebastianVillarpando
    @SebastianVillarpando 2 หลายเดือนก่อน +1

    Great video, thank you!

  • @giorgostzanakis7311
    @giorgostzanakis7311 6 หลายเดือนก่อน +1

    Thank you so much, that did the job!

    • @lovetocode4486
      @lovetocode4486  6 หลายเดือนก่อน

      Glad that helps you. Nice 👍 👍👍

  • @youcancallmejoker340
    @youcancallmejoker340 5 หลายเดือนก่อน +1

    Brilliant Sir. Bravo!

  • @azhar8178
    @azhar8178 5 หลายเดือนก่อน +1

    You are a life saver , Brilliant

    • @lovetocode4486
      @lovetocode4486  5 หลายเดือนก่อน

      Great that helps you ✌️👍

  • @user-py6to3yd4m
    @user-py6to3yd4m 8 หลายเดือนก่อน +1

    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.

  • @asankapannipitiya9124
    @asankapannipitiya9124 ปีที่แล้ว +1

    Thank you so much. Great video, helped me to resolve the issue I was facing.

    • @lovetocode4486
      @lovetocode4486  ปีที่แล้ว

      Great to hear @asanka. Glad that helps 👍👍👍. Thanks

  • @ChadDiaz-qk4fb
    @ChadDiaz-qk4fb ปีที่แล้ว +1

    Thanks for a great tutorial!

    • @lovetocode4486
      @lovetocode4486  ปีที่แล้ว

      Thanks @Chad. Glad it help you :) :)

  • @user-bf2ne9oe9d
    @user-bf2ne9oe9d 11 หลายเดือนก่อน +1

    Nice Video. Very helpful.

    • @lovetocode4486
      @lovetocode4486  11 หลายเดือนก่อน

      Glad it was helpful! Thanks

  • @Vinod_Kumar827
    @Vinod_Kumar827 11 หลายเดือนก่อน +1

    thanks, it was great

    • @lovetocode4486
      @lovetocode4486  11 หลายเดือนก่อน

      You're welcome! Thanks Vinod

  • @felpchacon
    @felpchacon ปีที่แล้ว +1

    Great

  • @orhn
    @orhn ปีที่แล้ว +1

    Thats very cool

  • @rafsanbhuiyan
    @rafsanbhuiyan ปีที่แล้ว +1

    Great video, but we’ll probably need a lambda if we want to make it event driven

    • @lovetocode4486
      @lovetocode4486  ปีที่แล้ว

      Thanks for the comment Rafsan. That is true

  • @danielmdubois
    @danielmdubois 10 หลายเดือนก่อน +1

    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.

    • @lovetocode4486
      @lovetocode4486  10 หลายเดือนก่อน

      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.

  • @giantboanerges206
    @giantboanerges206 3 หลายเดือนก่อน +1

    Great video 🎉 how to send message to SNS topic then process the message

    • @lovetocode4486
      @lovetocode4486  3 หลายเดือนก่อน +1

      Hey mate, Do you mean that sending message to SNS from Slack or different source?

    • @giantboanerges206
      @giantboanerges206 3 หลายเดือนก่อน +1

      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

  • @Lucky_and_Sunny_vlogs
    @Lucky_and_Sunny_vlogs ปีที่แล้ว +2

    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

    • @Lucky_and_Sunny_vlogs
      @Lucky_and_Sunny_vlogs ปีที่แล้ว +1

      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

    • @lovetocode4486
      @lovetocode4486  ปีที่แล้ว

      @@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

  • @sanghalee4276
    @sanghalee4276 8 หลายเดือนก่อน +1

    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?

    • @lovetocode4486
      @lovetocode4486  8 หลายเดือนก่อน +1

      By default, the cloudtrail is on. are you able to see any logs(login access) in the cloudtrail events?

  • @MyStudios4u
    @MyStudios4u 8 หลายเดือนก่อน +1

    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.

    • @lovetocode4486
      @lovetocode4486  8 หลายเดือนก่อน +1

      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

    • @MyStudios4u
      @MyStudios4u 8 หลายเดือนก่อน +1

      Okay let me see first thanks

  • @subanana
    @subanana ปีที่แล้ว +1

    nice thanks !
    how to do it on Microsoft Teams with out lambda?

    • @lovetocode4486
      @lovetocode4486  ปีที่แล้ว

      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

  • @OpenSourceGeorgia
    @OpenSourceGeorgia ปีที่แล้ว +1

    But how can we format this message? I think it's not possible

    • @lovetocode4486
      @lovetocode4486  ปีที่แล้ว

      Hi Toma,
      If you refer this point in the video th-cam.com/video/CszzQcPAqNM/w-d-xo.html, you can do formatting here.

    • @OpenSourceGeorgia
      @OpenSourceGeorgia ปีที่แล้ว

      @@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

    • @lovetocode4486
      @lovetocode4486  ปีที่แล้ว

      @@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.

    • @OpenSourceGeorgia
      @OpenSourceGeorgia ปีที่แล้ว +1

      @@lovetocode4486 Yeah that's right, I decided to use Lambda