Skip to main content

google_compute_resource_policies resource

Use the google_compute_resource_policies InSpec audit resource to to test a Google Cloud ResourcePolicy resource.

Examples

  describe google_compute_resource_policies(project: 'chef-gcp-inspec', region: ' value_region') do
    it { should exist }
  end

Properties

Properties that can be accessed from the google_compute_resource_policies resource:

See google_compute_resource_policy for more detailed information.

  • kinds: an array of google_compute_resource_policy kind
  • ids: an array of google_compute_resource_policy id
  • creation_timestamps: an array of google_compute_resource_policy creation_timestamp
  • self_links: an array of google_compute_resource_policy self_link
  • self_link_with_ids: an array of google_compute_resource_policy self_link_with_id
  • regions: an array of google_compute_resource_policy region
  • descriptions: an array of google_compute_resource_policy description
  • names: an array of google_compute_resource_policy name
  • vm_maintenance_policies: an array of google_compute_resource_policy vm_maintenance_policy
  • snapshot_schedule_policies: an array of google_compute_resource_policy snapshot_schedule_policy
  • group_placement_policies: an array of google_compute_resource_policy group_placement_policy
  • instance_schedule_policies: an array of google_compute_resource_policy instance_schedule_policy
  • statuses: an array of google_compute_resource_policy status
  • resource_statuses: an array of google_compute_resource_policy resource_status

Filter criteria

This resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.

GCP permissions

Ensure the Compute Engine API is enabled for the current project.

Thank you for your feedback!

×