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 ofgoogle_compute_resource_policykindids: an array ofgoogle_compute_resource_policyidcreation_timestamps: an array ofgoogle_compute_resource_policycreation_timestampself_links: an array ofgoogle_compute_resource_policyself_linkself_link_with_ids: an array ofgoogle_compute_resource_policyself_link_with_idregions: an array ofgoogle_compute_resource_policyregiondescriptions: an array ofgoogle_compute_resource_policydescriptionnames: an array ofgoogle_compute_resource_policynamevm_maintenance_policies: an array ofgoogle_compute_resource_policyvm_maintenance_policysnapshot_schedule_policies: an array ofgoogle_compute_resource_policysnapshot_schedule_policygroup_placement_policies: an array ofgoogle_compute_resource_policygroup_placement_policyinstance_schedule_policies: an array ofgoogle_compute_resource_policyinstance_schedule_policystatuses: an array ofgoogle_compute_resource_policystatusresource_statuses: an array ofgoogle_compute_resource_policyresource_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.