Syntax

A google_compute_global_forwarding_rules is used to test a Google GlobalForwardingRule resource

Examples

describe google_compute_global_forwarding_rules(project: 'chef-gcp-inspec') do
  its('count') { should be >= 1 }
  its('port_ranges') { should include '80-80' }
end

Properties

Properties that can be accessed from the google_compute_global_forwarding_rules resource:

See googlecomputeglobalforwardingrule.md for more detailed information * creation_timestamps: an array of google_compute_global_forwarding_rule creationtimestamp * descriptions: an array of `googlecomputeglobalforwardingruledescription *ids: an array ofgooglecomputeglobalforwardingruleid *ipaddresses: an array ofgooglecomputeglobalforwardingruleip_address *ipprotocols: an array ofgooglecomputeglobalforwardingrule` ipprotocol * backend_services: an array of google_compute_global_forwarding_rule backendservice * `ipversions: an array ofgooglecomputeglobalforwardingruleip_version *loadbalancingschemes: an array ofgooglecomputeglobalforwardingruleload_balancing_scheme *names: an array ofgooglecomputeglobalforwardingrulename *networks: an array ofgooglecomputeglobalforwardingrulenetwork *portranges: an array ofgooglecomputeglobalforwardingrule` portrange * ports: an array of google_compute_global_forwarding_rule ports * subnetworks: an array of google_compute_global_forwarding_rule subnetwork * regions: an array of google_compute_global_forwarding_rule region * targets: an array of google_compute_global_forwarding_rule target

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.