Get started
Prepare access to Compliance Engine v2 and choose a starting point for browsing policies or reviewing results.
Use this documentation to develop and implement compliance policies.
To enable and use Compliance Engine v2 without developing policies, contact Cloudaware Support at support@cloudaware.com or your Technical Account Manager (TAM). No additional setup is required.
Before you begin
Confirm the following for your organization:
- Service and inventory readiness. Ensure that cloud accounts are added to Cloudaware so the resources you want to evaluate are available in Cloudaware CMDB, with the configuration data needed by the selected policies.
- Policy repository. Identify which repository your organization uses and obtain its Git URL and any required access. Cloudaware provides the default public policy repository. For custom policies, you can use a Cloudaware-managed private repository or manage your own. Ask your Technical Account Manager (TAM) about a managed repository or repository connection requirements. See Repository options.
- BigQuery access. If you plan to review results, obtain your organization's export project ID, dataset names, and access to query them. If you do not know these details, ask your Cloudaware TAM
tam@cloudaware.comor your organization's Google Cloud administrator to identify the project and the person who grants access.
The export project contains CMDB inventory in the dataset referred to as sobjects and compliance results, execution history, and framework mappings in the dataset referred to as ce. Actual dataset names can differ. Basic SQL and BigQuery familiarity will help you query this data. See BigQuery entry points.
Git repository access and BigQuery query access are separate prerequisites. Prepare the tools and permissions below for your chosen task.
Configure BigQuery permissions for Compliance Engine
If you are an admin in Google Cloud:
- Navigate to the Google Cloud Console.
- Select the project where you want to assign roles.
- Select IAM & Admin → IAM.
- Click Grant Access.
- Under Add principals, insert the username into the New Principals field. Under Assign roles, select
BigQuery Data ViewerandBigQuery Job Userroles. - Click Save.
Otherwise, ask your Google Cloud administrator to grant access for the account you will use.
Confirm the project and datasets with your administrator before proceeding to Find your first policy result.
Set up your development environment
To develop or test policies, choose one of the environments:
- Local VS Code: Install Git, Java, the
repo-managertool, and the Google Cloud CLI. Install the repository's recommended VS Code extensions for YAML validation, Markdown, and BigQuery queries. - VS Code dev container: Install Docker and the VS Code Dev Containers extension, then open the repository and choose Reopen in Container. The provided container includes the development tools and recommended extensions.
- Command line or another editor: Install Git, Java,
repo-manager, and the Google Cloud CLI, and configure your editor as needed.
See Set up a development environment for detail.
Choose your first task
Choose the path that matches your immediate goal:
- Explore the repo structure: Review the Repository Structure to understand the main directories, policy files, and identifier conventions.
- Understand a policy: Access the policy repository to locate definitions and supporting documentation. Use the Policy catalog to find a check relevant to your resources.
- Review an evaluation: Once you have BigQuery access and evaluation data is available, find your first policy result. Start with a known policy and inspect a resource's status and messages.
If you want to create or change policy logic, continue to Custom policy development after confirming your repository and development access.