Syntax

A google_compute_backend_services is used to test a Google BackendService resource

Beta Resource

This resource has beta fields available. To retrieve these fields, include beta: true in the constructor for the resource

Examples

describe google_compute_backend_services(project: 'chef-gcp-inspec') do
  its('count') { should be >= 1 }
  its('names') { should include 'inspec-gcp-backend-service' }
  its('port_names') { should include 'http' }
  its('protocols') { should include 'HTTP' }
  its('timeout_secs') { should include '10' }
end

Properties

Properties that can be accessed from the google_compute_backend_services resource:

See googlecomputebackend_service.md for more detailed information * affinity_cookie_ttl_secs: an array of google_compute_backend_service affinitycookiettlsec * backends: an array of `googlecomputebackendservicebackends *circuitbreakers: an array ofgooglecomputebackendservicecircuit_breakers *consistenthashes: an array ofgooglecomputebackendserviceconsistent_hash *cdnpolicies: an array ofgooglecomputebackendservicecdn_policy *connectiondrainings: an array ofgooglecomputebackendserviceconnection_draining *creationtimestamps: an array ofgooglecomputebackendservicecreation_timestamp *customrequestheaders: an array ofgooglecomputebackendservice` customrequestheaders * fingerprints: an array of `googlecomputebackendservicefingerprint *descriptions: an array ofgooglecomputebackendservicedescription *enablecdns: an array ofgooglecomputebackendservice` enablecdn * health_checks: an array of google_compute_backend_service healthchecks * ids: an array of `googlecomputebackendserviceid *iaps: an array ofgooglecomputebackendserviceiap *loadbalancingschemes: an array ofgooglecomputebackendserviceload_balancing_scheme *localitylbpolicies: an array ofgooglecomputebackendservice` localitylbpolicy * names: an array of `googlecomputebackendservicename *outlierdetections: an array ofgooglecomputebackendserviceoutlier_detection *portnames: an array ofgooglecomputebackendserviceport_name *protocols: an array ofgooglecomputebackendserviceprotocol *securitypolicies: an array ofgooglecomputebackendservice` securitypolicy * session_affinities: an array of google_compute_backend_service sessionaffinity * `timeoutsecs: an array ofgooglecomputebackendservice` timeoutsec * log_configs: an array of google_compute_backend_service log_config

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.