Notifications

173 views

Description

  • This article is to demonstrate below.
  Topic
 1   Types of Event/Alert mechanism available from AWS
 2   What type of  AWS Event/Alert mechanism ServiceNow CMP supports?
 3  Servicenow CMP Pre-requisites for AWS Alert Management.
 4  Configuration requirement at AWS 
 5   The cloud event table at ServiceNow Instance.
 6   Cloud Event Scheduler
 7   Troubleshooting Cloud Event configuration.
  

Release or Environment

  • London P*, Madrid P* and Newyork P*  

Instructions

 1   Types of Event/Alert mechanism available from AWS

 

Amazon CloudWatch Events delivers a near real-time stream of system events that describe changes in Amazon Web Services (AWS) resources. Using simple rules that you can quickly set up, you can match events and route them to one or more target functions or streams.

CloudWatch Events becomes aware of operational changes as they occur. CloudWatch Events responds to these operational changes and takes corrective action as necessary, by sending messages to respond to the environment, activating functions, making changes, and capturing state information.

Amazon Simple Notification Service (SNS) is a highly available, durable, secure, fully managed pub/sub messaging service that enables you to decouple microservices, distributed systems, and serverless applications. Amazon SNS provides topics for high-throughput, push-based, many-to-many messaging. 

 

 2   What type of  AWS Event/Alert mechanism ServiceNow CMP supports?

 

 

3  Servicenow CMP Pre-requisites for AWS Alert Management.

 

  • Cloud Management Plugins must be activated.  
    •  Plugin Name Status   Plugin ID 
      Cloud APIActivecom.snc.cloud.api
      Cloud Config ManagementActivecom.snc.config.mgmt
      Cloud Management Activecom.snc.cloud.mgmt
      Cloud Management CoreActivecom.snc.cloud.core
             
  • AWS Service Account (AccountID & Credentials).
  • The Service Account has all the AWS Logical Datacenters discovered successfully.
  • The User from ServiceNow should have the Role "sn_cmp.cloud_event_integration"

 

 4   Configuration requirement at AWS 

 

  • Make sure the Subscription endpoint status is "Confirmed"
  • If the Subscription status is in "Pending Confirmation" mean there is an issue with the username/password or the instance name provided in the endpoint are incorrect.
  • Once the status is Confirmed" verify the AWS settings for SNS, review AWS Config >> Settings   

 

  • Once the status is Confirmed" verify the AWS settings for SNS, review AWS Config >> Settings 
  • Make sure the Recording is ON 
  • Make sure required record types  are selected (Example: Below screenshot have the configuration to capture events of all the resource types)

  • Make sure the SNS Topic is the same as configured above and Status confirmed

 

5    The cloud event table at ServiceNow Instance.

 

  • Once the above configuration is successful, the user can see the events populated to "sn_cmp_cloud_event_list"
https://<InstanceName>.service-now.com/sn_cmp_cloud_event_list.do

 

 6    Event properties and its Payload for IRE  

 

  • An example of an event and its properties
  • Important Properties to be noted 
    • Event Name: Generated from the AWS
    • Configuration Item: Displays which CI record get affected by this Event
    • Resource Block: Resource Type identification
    • Payload: Contains all the information about the event and its relation
      •  
 7    Cloud Event Scheduler 

 

  • Once an event has been generated from AWS the "Cloud Event Scheduler" scheduled jobs execute in the background 
https://<instancename>.service-now.com/sysauto_script.do?sys_id=fb9dc69dd754320097eb6ccf6e6103b5&sysparm_record_rows=1&sysparm_record_scope=80d50579eb203200979aa5115206fedd&sysparm_record_target=sysauto&sysparm_record_list=nameCONTAINScloud+event%5EORDERBYname&sysparm_nostack=true&sysparm_record_row=1
  • The scheduled  job "Cloud Event Scheduler" is designed to execute every 10 seconds by default 
  • User has the ability to change the Repeat interval from the default 10 seconds to the required interval level.
  • The job responsibility is to pass the Event Payload to IRE and IRE then takes the necessary actions to modify the state of the resources as per the event

 

Additional Information

Article Information

Last Updated:2019-09-20 00:57:53
Published:2019-09-19