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 googlecomputeroute.md for more detailed information * dest_ranges: an array of google_compute_route destrange * descriptions: an array of `googlecomputeroutedescription *names: an array ofgooglecomputeroutename *networks: an array ofgooglecomputeroutenetwork *priorities: an array ofgooglecomputeroutepriority *tags: an array ofgooglecomputeroutetags *nexthopgateways: an array ofgooglecomputeroute` nexthopgateway * `nexthopinstances: an array ofgooglecomputeroute` nexthopinstance * `nexthopips: an array ofgooglecomputeroute` nexthopip * `nexthopvpntunnels: an array ofgooglecomputeroutenext_hop_vpn_tunnel *nexthopnetworks: an array ofgooglecomputeroutenext_hop_network *nexthopilbs: an array ofgooglecomputeroute` nexthopilb

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.