Skip to main content

About the Chef InSpec Google Cloud Platform resource pack

Chef InSpec has resources for auditing Google Cloud Platform (GCP).

Prerequisites

To use Chef InSpec GCP resources:

Initialize an InSpec profile for auditing GCP

To use the GCP resources, follow these steps:

  1. Create a service account with the scopes appropriate for your needs.

  2. Download the credential JSON file, for example project-credentials.json, to your workspace and activate your service account:

    gcloud auth activate-service-account --key-file project-credentials.json
    
  3. Create an InSpec profile for testing GCP resources:

    inspec init profile --platform gcp <PROFILE_NAME>
    
  4. Create controls using the resources listed below.

  5. Assuming the inputs.yml file contains your GCP project ID, you execute the profile can then be executed using the following command:

    inspec exec <PROFILE_NAME> --input-file=<PROFILE_NAME>/inputs.yml -t gcp://
    

Google Cloud Platform resources

The following InSpec Google Cloud resources are available in this resource pack.

Thank you for your feedback!

×