Syntax

A google_compute_region_backend_services is used to test a Google RegionBackendService resource

Examples

describe google_compute_region_backend_services(project: 'chef-gcp-inspec', region: 'europe-west2') do
  its('count') { should be >= 1 }
  its('names') { should include 'inspec-gcp-region-backend-service' }
  its('protocols') { should include 'TCP' }
  its('timeout_secs') { should include '15' }
end

Properties

Properties that can be accessed from the google_compute_region_backend_services resource:

See googlecomputeregionbackendservice.md for more detailed information * names: an array of google_compute_region_backend_service name * health_checks: an array of google_compute_region_backend_service healthchecks * backends: an array of `googlecomputeregionbackendservicebackends *descriptions: an array ofgooglecomputeregionbackendservicedescription *fingerprints: an array ofgooglecomputeregionbackendservicefingerprint *protocols: an array ofgooglecomputeregionbackendserviceprotocol *sessionaffinities: an array ofgooglecomputeregionbackendservicesession_affinity *regions: an array ofgooglecomputeregionbackendserviceregion *timeoutsecs: an array ofgooglecomputeregionbackendservice` timeoutsec * connection_drainings: an array of google_compute_region_backend_service connectiondraining * `loadbalancingschemes: an array ofgooglecomputeregionbackendservice` loadbalancing_scheme

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.