A google_compute_vpn_tunnels is used to test a Google VpnTunnel resource
This resource has beta fields available. To retrieve these fields, include beta: true in the constructor for the resource
describe google_compute_vpn_tunnels(project: 'chef-gcp-inspec', region: 'europe-west2') do
its('vpn_tunnel_names') { should include 'inspec-vpn-tunnel' }
its('peer_ips') { should include '15.0.0.120' }
end
describe google_compute_vpn_tunnels(project: 'chef-inspec-gcp', region: 'europe-west2') do
its('count') { should be <= 100}
end
describe google_compute_vpn_tunnels(project: 'chef-inspec-gcp', region: 'europe-west2') do
its('vpn_tunnel_names') { should include "vpn_tunnel-name" }
end
describe google_compute_vpn_tunnels(project: 'chef-inspec-gcp', region: 'europe-west2') do
its('vpn_tunnel_target_vpn_gateways') { should not include "gateway-name" }
end
Properties that can be accessed from the google_compute_vpn_tunnels resource:
See the google_compute_vpn_tunnel resource for more information.
idsgoogle_compute_vpn_tunnel idcreation_timestampsgoogle_compute_vpn_tunnel creation_timestampvpn_tunnel_namesgoogle_compute_vpn_tunnel namedescriptionsgoogle_compute_vpn_tunnel descriptiontarget_vpn_gatewaysgoogle_compute_vpn_tunnel target_vpn_gatewayvpn_gatewaysgoogle_compute_vpn_tunnel vpn_gatewayvpn_gateway_interfacesgoogle_compute_vpn_tunnel vpn_gateway_interfacepeer_external_gatewaysgoogle_compute_vpn_tunnel peer_external_gatewaypeer_external_gateway_interfacesgoogle_compute_vpn_tunnel peer_external_gateway_interfacepeer_gcp_gatewaysgoogle_compute_vpn_tunnel peer_gcp_gatewayroutersgoogle_compute_vpn_tunnel routerpeer_ipsgoogle_compute_vpn_tunnel peer_ipshared_secretsgoogle_compute_vpn_tunnel shared_secretshared_secret_hashesgoogle_compute_vpn_tunnel shared_secret_hashike_versionsgoogle_compute_vpn_tunnel ike_versionlocal_traffic_selectorsgoogle_compute_vpn_tunnel local_traffic_selectorremote_traffic_selectorsgoogle_compute_vpn_tunnel remote_traffic_selectorlabelsgoogle_compute_vpn_tunnel labelslabel_fingerprintsgoogle_compute_vpn_tunnel label_fingerprintregionsgoogle_compute_vpn_tunnel regionThis resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.
Ensure the Compute Engine API is enabled for the current project.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_compute_vpn_tunnels/