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_instancekindids: an array ofgoogle_compute_target_instanceidcreation_timestamps: an array ofgoogle_compute_target_instancecreation_timestampnames: an array ofgoogle_compute_target_instancenamedescriptions: an array ofgoogle_compute_target_instancedescriptionzones: an array ofgoogle_compute_target_instancezonenat_policies: an array ofgoogle_compute_target_instancenat_policyinstances: an array ofgoogle_compute_target_instanceinstanceself_links: an array ofgoogle_compute_target_instanceself_linkself_link_with_ids: an array ofgoogle_compute_target_instanceself_link_with_idnetworks: an array ofgoogle_compute_target_instancenetworksecurity_policies: an array ofgoogle_compute_target_instancesecurity_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.