A google_compute_router_nats is used to test a Google RouterNat resource
This resource has beta fields available. To retrieve these fields, include beta: true in the constructor for the resource
describe google_compute_router_nats(project: 'chef-gcp-inspec', region: 'europe-west2', router: 'inspec-gcp-router') do
its('names') { should include 'inspec-router-nat' }
end
Properties that can be accessed from the google_compute_router_nats resource:
See the google_compute_router_nat resource for more information.
namesgoogle_compute_router_nat namenat_ip_allocate_optionsgoogle_compute_router_nat nat_ip_allocate_optionnat_ipsgoogle_compute_router_nat nat_ipsdrain_nat_ipsgoogle_compute_router_nat drain_nat_ipssource_subnetwork_ip_ranges_to_natsgoogle_compute_router_nat source_subnetwork_ip_ranges_to_natsubnetworksgoogle_compute_router_nat subnetworkmin_ports_per_vmsgoogle_compute_router_nat min_ports_per_vmudp_idle_timeout_secsgoogle_compute_router_nat udp_idle_timeout_secicmp_idle_timeout_secsgoogle_compute_router_nat icmp_idle_timeout_sectcp_established_idle_timeout_secsgoogle_compute_router_nat tcp_established_idle_timeout_sectcp_transitory_idle_timeout_secsgoogle_compute_router_nat tcp_transitory_idle_timeout_seclog_configsgoogle_compute_router_nat log_configroutersgoogle_compute_router_nat routerregionsgoogle_compute_router_nat 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_router_nats/