Invoke AWS lambda function from slack channel | Slash Command Webhook
ฝัง
- เผยแพร่เมื่อ 20 ก.พ. 2024
- Function as a Service(FaaS) is the new era of cloud development which allows us to run code without provisioning or managing any servers. AWS provides lambda functions to build Serverless applications.
These applications require a trigger for execution, and once the execution is complete, they go back to sleep.
In this video we are going to explore how to trigger AWS Lambda Function using Slack Slash Command .
Prerequisite:
-----------------------
In-depth intuition on Webhooks-Push-Styled API with Hands-On Demo
• In-depth intuition on ...
How to Use GitHub Actions to Notify Slack on Push
• How to Use GitHub Acti...
Code:
----------
import json
import base64
from urllib.parse import unquote_plus
def lambda_handler(event, context):
TODO implement
print(event)
message=((base64.b64decode(event['body']).decode('utf-8')).split("text=")[1]).split("&")[0]
print(unquote_plus(message))
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}
Check this playlist for more Data Engineering related videos:
• Demystifying Data Engi...
Apache Kafka form scratch
• Apache Kafka for Pytho...
Messaging Made Easy: AWS SQS Playlist
• Messaging Made Easy: A...
Snowflake Complete Course from scratch with End-to-End Project with in-depth explanation--
doc.clickup.com/37466271/d/h/...
Explore our vlog channel:
www.youtube.com/@funwithourfa...
Your Queries -
=============
Build Your Own Slack Commands with Lambda Function URL
Slack Slash Command Integration with AWS Lambda
Building Slack /slash commands with AWS Lambda
Slack Slash Command Integration with AWS Lambda
Invoke AWS lambda function from slack channel
Connect your AWS Lambda to Slack integration
How do I invoke an AWS lambda from my slack app
Using AWS Lambda Function URL to build a Serverless backend for Slack
Invoke Amazon Lambda function for new Slack message
🙏🙏🙏🙏🙏🙏🙏🙏
YOU JUST NEED TO DO
3 THINGS to support my channel
LIKE
SHARE
&
SUBSCRIBE
TO MY TH-cam CHANNEL
thanks..how do restrict slash command to particular channel?
please do full project on spark