AWS events-driven discovery
Summarize
Summary of AWS Events-Driven Discovery
The AWS Config service can trigger events for changes in cloud resource configurations. ServiceNow's event-driven discovery utilizes these events to automatically update the Configuration Management Database (CMDB) with the latest resource information.
Show less
Key Features
- Integration with AWS Config for sending Simple Notification Service (SNS) notifications to ServiceNow.
- Event processing through the ServiceNow Cloud Events REST API, which updates the Cloud Events [sncmpcloudevent] table based on specific event types.
- Response mappings or patterns are used for updating affected resources in the CMDB.
- The sncmp.cloudevent.useresponsemappingaws property, set to True by default, determines the method for updating the CMDB.
- Ability to scale the Cloud Event Scheduler using the sncmp.cloudevent.parallelschedulercount property to enhance event processing efficiency.
- Error management through the sncmp.errorevents.defaultdomain property to restrict visibility of failed events to designated administrators.
Key Outcomes
By implementing AWS events-driven discovery, ServiceNow customers can expect:
- Automated updates of resource information in the CMDB, ensuring data accuracy and currency.
- Improved event processing rates through parallel scheduling, accommodating high event inflow.
- Controlled visibility of error events, enhancing security and management oversight.
The Amazon Web Services (AWS) Config service can raise events for any changes in the life-cycle state or the configuration of a cloud resource. The ServiceNow® event-driven discovery uses the events to auto-update the latest resource information in the Configuration Management Database (CMDB).
- The Type of the event is SubscriptionConfirmation.
- The Type of the event is Notification and messageType is ConfigurationItemChangeNotification.
- Amazon CloudWatch has raised the event for a change in the tag associated with the Configuration Item (CI).
The Cloud Event Scheduler then picks the events in the Ready state for batch processing. During event processing, the event-driven discovery uses response mappings or patterns to update the details of the affected resource in the CMDB. The sn_cmp.cloud_event.use_response_mapping_aws property determines the CMDB update method. To understand the status of an event, review its state in the Cloud Events [sn_cmp_cloud_event] table.
Starting with the Xanadu release, the sn_cmp.cloud_event.use_response_mapping_aws property is set to True by default. When this property is set to True, and suitable response mappings are available, the event-driven discovery uses the response mappings to create or update the CI in the CMDB. Otherwise, the event-driven discovery triggers the appropriate patterns to discover the affected resource and create or update the CI in the CMDB.
Starting with the Xanadu release, use the sn_cmp.cloud_event.parallel_scheduler_count property to scale the Cloud Event Scheduler per the event inflow rate. Running multiple cloud event schedulers in parallel helps to improve the event processing rate of the instance. For more information on scaling the Cloud Event Schedulers, see Scale the AWS cloud event schedulers.
During event processing, the Cloud Event Scheduler identifies the domain of the service account and assigns to the event. If an error occurs in identifying the domain before processing, the event can sometimes stay unassigned and become visible to all domains. To prevent the failed events visibility to all domains, you can set the sn_cmp.error_events.default_domain property to sys_id of the service-provider domain so that the failed events appears only to the service-provider domain administrator.