Step 2: The window will pop up and provide the information as shown below and click on “Create Alarm”. Step 1: Go to your EC2 Instance and create an alarm by clicking on Alarm. Task 4: Create an Alarm on the EC2 instance. Step 7: You can get a sample event from following link and you can check Message in slack. Step 6: You can Test, click on Action and select Configure test event. Step 5: Your Function is now read to get notifications from SNS. Step 4: Select Lambda Function as protocol and Endpoint as your lambda function ARN. Step 3: Now we will create a subscription for the lambda function. Step 2: Provide the Information as shown below. Step 1: Go to SNS and click on Create Topic. Task 3: Make the Lambda function subscribe to the SNS Topic. Step 8: Your function is created and now put your webhook URL as “slack_url”’s value. Step 7: Review the function and click on Create Function. Step 6: Leave other fields as it is and click on next. Step 5: Create a basic Execution role for lambda Step 4: Go to the link and copy the code in the editor. Step 3: Insert Name and Description for your Lambda function. Step 1: Go to AWS Lambda Console and click on Get Started Now. Task 2: Create a Lambda function which sends the notification to the slack. Step 9: We will use the Webhook URL in Lambda Function Step 8: All you need is a Webhook URL that you can find as below and you can also customize name and image of the sender and save the setting. Step 7: So the Incoming Webhook is being created. Step 6: Select the channel and click on Add Incoming Webhook Step 5: Install the app in your respective Team. Type “incoming” in the search box and select the Incoming Webhooks. Step 4: You will find the application site of Slack. Step 3: You will find a popup Menu as shown below and click on App and Custom Integration Step 1: Go to your slack application where you might be able to see below scenario Task 1: Create an Incoming Webhook in slack. Step by step process to integrate Lambda with Slack:
0 Comments
Leave a Reply. |