Cloud Configuration Governance compares the configuration settings of cloud resources against a set of policies and reports each setting that breaks one. Violations can be counted by severity on the dashboard, and a remediation run fixes one violation type at a time. The application suits teams that want evidence that their AWS or Azure resources match a defined security standard.
How the scan cycle fits together
A new setup usually runs in this order: install, connect the accounts, define policies and group them into policy sets, scan, then remediate the violations that come back.
A scan produces a scan run, a scan run holds audit results, and each audit result can be remediated or ignored for now.
Install the application and the content pack
Installing the application requires the admin role. The application identifier is com.sn.itom.ccg. The installer adds any related ServiceNow Store applications and plugins that are missing, so review the dependency list first. The application runs on the ITOM Cloud Accelerate subscription and adds several roles and the Cloud Action Library application.
The base system contents, such as the standard policies, configuration collectors and remediations, sit in a companion application called the CCG Content Pack, identified as sn_itom_ccg_cp. From version 1.3.7 onward, install that pack straight after the main application.
The Brazil release also marks the content pack as being prepared for future deprecation. It stays supported, but it will be hidden and will no longer install on new instances.
Connect AWS accounts
For AWS, the right setup depends on how the accounts are arranged. For the provisioning side of the same accounts, see the cloud provisioning setup guide for AWS, Azure and VMware.
| Access pattern | Where permanent credentials live | When it fits |
|---|---|---|
| Standalone account | On the account’s own service account record | An independent AWS account |
| Member accounts through a management account | On the management account | Member accounts of one AWS organization |
| Trusting account through a trusted account | On the trusted account, which the platform calls the accessor account | Access within one organization or across organizations |
Setup starts with an AWS Credentials record under Connection & Credentials > Credentials. Next, create a credential alias with the type set to Credential and the Authentication Algorithm set to AWS Authenticator. The alias sn_itom_cal.Aws_Creds_Alias can be selected instead of creating your own.
Then add a cloud service account under Cloud Provisioning and Governance > Service accounts. Enter the 12-digit account number without hyphens, and choose AWS Datacenter as the datacenter type. For a member account, enter its management account in the Parent account field. For a management account, select the Is master account check box. Leave the discovery credentials empty when another AWS account reaches this one. Then run datacenter discovery so the platform can list the datacenters tied to each service account. CCG does not use a MID Server-based assume role setup for trusting accounts, but the sequence still calls for installing and configuring MID Servers.
For a trusting account, create an IAM role in that account whose trust relationship names the full user ARN of the accessor account, with the action set to sts:AssumeRole. In the platform, enter the accessor account name in the Accessor account field on the trusting account’s service account, then create an assume role configuration for it. This step needs the sn_itom_ccg.scheduling_admin role.
Build policies with one of three methods
A policy defines the non-compliant configuration for one resource type. It records the cloud, the resource type, the definition of the non-compliant state and how the violation is reported. A policy takes effect once you add it to a policy set, and a set can hold one or more policies.
The base system includes an S3 bucket encryption check. Its IAM user password check needs the iam:GetCredentialReport and iam:GenerateCredentialReport permissions in the account.
| Method | Effort | Strength |
|---|---|---|
| Condition builder | No code | Pairs a configuration key with a value and combines conditions with AND and OR |
| Integration Hub flow | Low code | Lets one policy report different types of issues |
| Script | Code | Expresses custom logic, with script includes for shared decisions |
Condition builder policies
Go to Cloud Configuration Governance > Policies, select New and fill in the policy form. The sn_itom_ccg.governor role is required. A condition reads as a key name, a data type, a value and a comparison, for example Key is AWS:IAM:User:PasswordEnabled, Boolean, Value is true. Specify the key and value as a pair each time. Before writing your own, open a base system condition builder policy and use it as a model.
Integration Hub flow policies
This method takes more steps but offers more flexibility in reporting. Copy the CCG – Flow Policy Template subflow, add a CCG – Read Config Setting action for each configuration key, add the logic and assign the subflow outputs. With Report issue selected in Assign Subflow Outputs, CCG reports the violation using the definition in the policy’s Audit Violation Reporting field, and a Details value is required. With the option cleared, CCG does not report the violation, and you add a Create Record action that writes to the sn_itom_ccg_audit_result table. For the building blocks of these flows, see action and flow designer explained.
Script policies
Script policies use scriptable objects. configSettings holds the configuration data imported from the cloud, resourceInformation links related records, and auditResult carries details for a custom record. The answer variable is a Boolean that decides whether the violation is reported. The violatingConfigSettings variable is a JSON object that records the reason. For background on script includes, see script include explained.
If a script creates a custom audit result record, the Audit Violation Reporting setting on the policy stops applying. Check that before you rely on the policy’s reporting configuration.
Policy form fields and testing
The policy form asks for a name, a description, the cloud provider, the resource type and the policy type, plus fields that depend on that type. Severity is optional; a blank value uses the default on the violation definition.
Test the policy before you rely on it. Open the policy from Cloud Configuration Governance > Policy, select Test Policy, choose a scan run that already holds the configuration data, and select OK. The sn_itom_ccg.governor role covers this step.
Scan accounts against policy sets
A policy set groups policies that enforce one standard. The base system includes sets named AWS 1.4.0 and Azure 1.4.0. The AWS set maps its checks to the Amazon Web Services Foundations Benchmark v1.4.0, with examples such as MFA on the root user, a 90-day limit on access key age, a minimum IAM password length of 14 and S3 Block public access settings. The Azure set covers Key Vault logging and SQL vulnerability assessment.
Create a scan configuration with the sn_itom_ccg.scheduling_admin role. Go to Cloud Configuration Governance > Scan Configurations, select New, complete the form and submit it. A suitable policy set must exist first.
On the configuration tab, choose the cloud provider type and one or more policy sets, then save the form. For datacenter filters, pick a service account and, optionally, a datacenter. Without a datacenter, the scan covers all datacenters tied to that service account. For an AWS management account, you can add member accounts, provided an assume role configuration exists for the management account and datacenter discovery has finished for those members.
The optional filters tab takes tag names and values, or a comma-separated list of cloud identifiers. Without filters, CCG fetches the configuration of all cloud resources in scope. For background on tagging cloud resources, see tag governance for cloud resources.
For other failure patterns, see troubleshooting cloud provisioning and governance. Once the configuration is ready, run the scan configuration to evaluate the resources against the chosen policy sets.
Review violations and run remediation
Open Cloud Configuration Governance > Scan Run, open the finished run and select Show audit results. Violations are grouped by type, and one remediation run can fix one or more violations of the same type. Select the violations, choose Remediate, review the resource list, pick the remediation action and select OK. This step needs the sn_itom_ccg.ccg_operator role.
Track progress from the Remediation Runs related list, where the change request shows the status.
Ignore for Now suits an issue you do not want to fix yet. An ignored issue is not reported as a violation and is left out of the dashboard reports.
Read the dashboard
Open Cloud Configuration Governance > Dashboard. Viewing it needs the sn_itom_ccg.ccg_operator or sn_itom_ccg.report_viewer role. For building your own views, see dashboard explained.
| Widget | What it shows |
|---|---|
| Cloud health score | The percentage of scanned resources with no audit issue |
| Issues | Violations per violation definition, up to 10 bars, with the rest merged under Others |
| Policy and policy set compliance | Counts of compliant and non-compliant resources |
| Remediation widgets | Issues remediated, remediations by type and time taken to remediate |
| Trend | Violations reported over time |
Domain separation and reference material
Domain separation is not supported. The domain field can appear on data tables, but no business logic manages it, so the application is not considered domain-separated. Plan access around that. For the platform-wide access model, see instance security and access control.
Frequently asked questions
Can I check a policy before a scan reports violations?
Yes. Select Test Policy on the policy, then choose a scan run that already holds the configuration data.
Which roles do the steps need?
Installing needs the admin role. Creating and testing policies needs sn_itom_ccg.governor. Trusting account setup and scan configurations need sn_itom_ccg.scheduling_admin. Remediation needs sn_itom_ccg.ccg_operator, and the dashboard opens for sn_itom_ccg.ccg_operator or sn_itom_ccg.report_viewer.
What happens to an issue I set to ignore?
CCG stops reporting it as a violation and removes it from the dashboard reports.