google_compute_routes resource
Syntax
A google_compute_routes is used to test a Google Route 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_routes(project: 'chef-gcp-inspec') do
its('count') { should be >= 1 }
its('dest_ranges') { should include '15.0.0.0/24' }
its('next_hop_ips') { should include '10.2.0.1' }
its('priorities') { should include '100' }
end
Properties
Properties that can be accessed from the google_compute_routes resource:
See google_compute_route for more detailed information.
dest_ranges: an array ofgoogle_compute_routedest_rangedescriptions: an array ofgoogle_compute_routedescriptionnames: an array ofgoogle_compute_routenamenetworks: an array ofgoogle_compute_routenetworkpriorities: an array ofgoogle_compute_routeprioritytags: an array ofgoogle_compute_routetagsnext_hop_gateways: an array ofgoogle_compute_routenext_hop_gatewaynext_hop_instances: an array ofgoogle_compute_routenext_hop_instancenext_hop_ips: an array ofgoogle_compute_routenext_hop_ipnext_hop_vpn_tunnels: an array ofgoogle_compute_routenext_hop_vpn_tunnelnext_hop_networks: an array ofgoogle_compute_routenext_hop_networknext_hop_ilbs: an array ofgoogle_compute_routenext_hop_ilb
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.