google_compute_target_instances resource
Use the google_compute_target_instances
InSpec audit resource to to test a Google Cloud TargetInstance resource.
Examples
describe google_compute_target_instances(project: 'chef-gcp-inspec', zone: ' value_zone') do
it { should exist }
end
Properties
Properties that can be accessed from the google_compute_target_instances
resource:
See google_compute_target_instance for more detailed information.
kinds
: an array ofgoogle_compute_target_instance
kindids
: an array ofgoogle_compute_target_instance
idcreation_timestamps
: an array ofgoogle_compute_target_instance
creation_timestampnames
: an array ofgoogle_compute_target_instance
namedescriptions
: an array ofgoogle_compute_target_instance
descriptionzones
: an array ofgoogle_compute_target_instance
zonenat_policies
: an array ofgoogle_compute_target_instance
nat_policyinstances
: an array ofgoogle_compute_target_instance
instanceself_links
: an array ofgoogle_compute_target_instance
self_linkself_link_with_ids
: an array ofgoogle_compute_target_instance
self_link_with_idnetworks
: an array ofgoogle_compute_target_instance
networksecurity_policies
: an array ofgoogle_compute_target_instance
security_policy
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.