Control: 2.20 Ensure a log monitoring and alerts are set up for disabling or deletion of customer created CMKs
Real-time monitoring of API calls can be achieved by directing ActionTrail Logs to Log Service and establishing corresponding query and alarms. It is recommended that a query and alarm be established for customer created KMSs which have changed state to disabled or deletion.
Perform the following to ensure the log monitoring and alerts are set up for disabling or scheduled deletion of customer created CMKs:
- Logon to SLS Console.
Log Service Audit Servicein the navigation pane.
- Go to
Access to Cloud Products > Global Configurationpage.
- Select a location of project for logs.
- Check the
Action Trailand configure a proper days.
Saveto save the changes.
- Go to
Access to Cloud Products > Global Configurationsclick
Log Management > Actiontrail Log.
- In the search/analytics console, input below query
"event.serviceName": Kms and ("event.eventName": DisableKey or "event.eventName": ScheduleKeyDeletion or "event.eventName": DeleteKeyMaterial
- Create a dashboard and set alert for the query result.
steampipe check alicloud_compliance.control.cis_v100_2_20
This control uses a named query:manual_control