> Source: [sk170762](https://support.checkpoint.com/results/sk/sk170762)

# sk170762 - How to integrate CloudGuard with Discord

| Property | Value |
|----------|-------|
| Solution ID | sk170762 |
| Date Created | 2020-12-26 |
| Last Modified | 2024-02-01 |
| Technical Level | General |
| Products | Cloud Firewall |
| Versions | R82.10, R81.20, R82 |

## Solution

### **Workflow:**

![](https://sc1.checkpoint.com/sc/SolutionsStatics/NEW_SK_NOID1606752201770/Workflow202011300922581.png)

### Procedure:

**Step 1 -- Create an AWS SNS**   

**a** . In the AWS console, navigate to SNS.   
**b** . Create a new SNS Topic ([detailed procedure](https://docs.aws.amazon.com/sns/latest/dg/sns-getting-started.html)).   

**Step 2 -- Enable CloudGuard SNS Integration**   

**a** . In the Dome9 Console, navigate to**Settings** \> I**ntegrations** .  
**b** . Under SNS, click **ENABLE** .  
**c** . Enter the ARN for the SNS you created in Step # 1.   
**d** . Click **SAVE** .   

**Step 3 -- Create an AWS Lambda Function**   

**a** . In AWS, Navigate to **Lambda** .   
**b** . Click **Create function** .  
**c** . Select the Author from scratch option.  
**d** . Enter a name for the function, and select **Runtime option Python 3.6** . Leave the Permissions settings as the default.  
**e** . Click **Create function** .   
**f** . Expand the Designer section  
**g** . In the **Add triggers** section, click on **SNS** to add the function trigger.   
**h** . Scroll down to the **Configure triggers** section and select the SNS you created in dtep # 1.   
**i** . Select **Enable trigger** and then click **Add** .   
**j** . Click on the Lambda function.   
**k** . Import the Python script and supporting libraries:   
<https://github.com/MatthBusby/Dome9-Discord-Intagration>  

**Step 4 -- Create a Discord Webhook**   

**1** . Open Discord and either:  
a. Create a new channel  
i. Click the Add a Server (**+** ) button in the left-hand pane.  
ii. Click **Create My Own** , enter a Server Name, and click **Create** .  
b. Or select the channel from which you wish to receive event notifications.  
**2** . From the channel menu, select the **Edit channel.**   
**3** . Click on the **Webhooks** menu item  
**4** . Click the **Create Webhook** button and fill in the name of the bot that will post the messages.  
**5** . Note the URL from the WEBHOOK URL field.  
**6** . Click the **Save** button.  

**Step 5 -- Test configuration**   

**1** . From AWS, navigate to the Lambda function.  
**2** . Click **Test** .

**Step 6 - Continuous Compliance Log Monitoring (Optional)**   

**1** . From the Dome9 Console, navigate to **Posture Management** and then **Compliance Policy** .  
**2** . Click **Add Policy** on the right-hand side.   
**3** . Select the desired platform and then select the desired account.  
**4** . Selected the desired ruleset(s).  
**5** . Click **Add Notification** (examples: AWS SNS).   
**6** . Select the SNS notification for each new finding as soon as it is discovered.  
**7** . Paste SNS ARN, select JSON full entry  
**8** . Send test message.   
**9** . Click the **Save** button and then click **save** again.   
**10**. Run policy.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
