google_compute_health_check_services resource
Use the google_compute_health_check_services InSpec audit resource to to test a Google Cloud HealthCheckService resource.
Examples
describe google_compute_health_check_services(project: 'chef-gcp-inspec', region: 'us-central1') do
it { should exist }
its('names') { should include 'instance-group-2' }
its('health_status_aggregation_policies') { should include 'NO_AGGREGATION' }
end
Properties
Properties that can be accessed from the google_compute_health_check_services resource:
See google_compute_health_check_service for more detailed information.
creation_timestamps: an array ofgoogle_compute_health_check_servicecreation_timestampdescriptions: an array ofgoogle_compute_health_check_servicedescriptionids: an array ofgoogle_compute_health_check_serviceidnames: an array ofgoogle_compute_health_check_servicenamehealth_status_aggregation_policies: an array ofgoogle_compute_health_check_servicehealth_status_aggregation_policyhealth_checks: an array ofgoogle_compute_health_check_servicehealth_checksnetwork_endpoint_groups: an array ofgoogle_compute_health_check_servicenetwork_endpoint_groupsnotification_endpoints: an array ofgoogle_compute_health_check_servicenotification_endpointsfingerprints: an array ofgoogle_compute_health_check_servicefingerprintnext_page_tokens: an array ofgoogle_compute_health_check_servicenext_page_token
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.