Configure Amazon SNS Notifications in USM Anywhere

Role Availability Read-Only Investigator Analyst Manager

After you set up the Amazon SNS topic and create the access key for Amazon Web Services (AWS), you can configure Amazon SNS notifications in USM Anywhere.

To configure Amazon SNS Credentials for notifications

  1. Go to Settings > Notifications.
  2. In the left navigation panel, click Amazon SNS.
  3. Select the AWS Region name.
  4. Enter the Access key and Secret key. See Create an AWS Access Key for more information.

    Specify the AWS region and SNS access kep parameters in USM Anywhere

  5. Click Save Credentials.

To create an orchestration rule for sending a notification request to Amazon SNS

  1. Go to Activity > Alarms or Activity > Events.
  2. Click the alarm or event to open the details.
  3. Click Create Rule and select Create Notification Rule.

    Create a notification rule from the alarm details

  4. You have already suggested property values to create a matching condition, but if you want to add new property values, click Add Condition.

    Note: If the field is related to the name of a country, you should use the country code defined by the ISO 3166.

    Note: The Sources or Destinations field needs to match the universally unique identifier (UUID) of the event or alarm. You can use the Source Name or Destination Name field instead.

    Important: Instead of using the equals and equals, case insensitive operators for array fields, LevelBlue recommends the use of the in or contains operators.

    Note: If you need to add a property value that maps with a property key, you need to know the mapping of the field. See Determining the Mapping of a Field for more information.

  5. (Optional.) Click Add Group to group your conditions.

    Note: See Operators in the Orchestration Rules for more information.

  6. In the Occurrences text box, enter the number of event occurrences that you want to produce a match on the conditional expression to trigger the rule.

    You can enter the number of occurrences or use the arrows to scroll the value up or down. You can enter a number between 1 and 100.

  7. Note: The current rule box shows you the syntax of your rule, and the rule verification box reviews that syntax before saving the rule.

  8. Click Next.

    Rules Verifications Dialog Box

    Important: A dialog box opens if there are warning messages. Click Cancel to review the warning messages, or click Accept to continue creating the rule.

  9. Enter a name for the rule.
  10. (Optional.) Enter a description for identifying this rule.
  11. For Notification Method, select the Slack option.
  12. Enter the Slack Alert Username.

    The username must be a valid team member for the Slack channel.

    Set options to launch the Slack notification for the orchestration rule

  13. In the Length text box, specify the timespan that you want to use to identify a match for multiple occurrences. Enter the number in the text box, and then use the drop-down menu to select a value of seconds, minutes, or hours.

    This duration identifies the amount of time that transpires from the beginning to the end of the occurrence. If the number of occurrences is not met within this period, the rule is not a match.

  14. Click Save.

    The created rule displays in the list of rules. You can see it from Settings > Rules > Orchestration Rules. See Orchestration Rules for more information.

  15. Important: It takes a few minutes for an orchestration rule to become active.

  16. For Notification Method, select the Amazon SNS option.
  17. Enter the SNS Topic Name you created in the AWS console. See Set Up an Amazon SNS Topic for more information.

    Set options to launch the Amazon SNS notification for the orchestration rule

  18. At the bottom of the dialog box, set the rule condition parameters to specify the criteria for a matching alarm or event to trigger the rule.

    Set the matching conditions for triggering the rule

    • This section provides suggested property/value pairs from the selected alarm or event that you can use as conditions for the rule. Click the icon to delete the items that you do not want to include in the matching conditions. You can also add other conditions that are not suggested.
    • If you create the rule from the Rules page, you must use the Add Condition and Add Group functions to define the property/value pairs that you want to use as conditions for the rule.
    • At the bottom of the dialog box, click More to display the optional multiple occurrence and window-length parameters.
  19. Click Save Rule.
  20. When a matching alarm or event is generated in USM Anywhere, you can go to your AWS console and select the Lambda function you created to verify that the function is being called. You can also open the Amazon CloudWatch logs to see the message in JavaScript Object Notation (JSON) format.