google_compute_region_instance_groups resource
Use the google_compute_region_instance_groups
InSpec audit resource to to test a Google Cloud RegionInstanceGroup resource.
Examples
describe google_compute_region_instance_groups(project: 'chef-gcp-inspec', region: 'us-central1') do
it { should exist }
its('names') { should include 'instance-group-2' }
end
Properties
Properties that can be accessed from the google_compute_region_instance_groups
resource:
See google_compute_region_instance_group for more detailed information.
creation_timestamps
: an array ofgoogle_compute_region_instance_group
creation_timestampdescriptions
: an array ofgoogle_compute_region_instance_group
descriptionids
: an array ofgoogle_compute_region_instance_group
idnames
: an array ofgoogle_compute_region_instance_group
namefingerprints
: an array ofgoogle_compute_region_instance_group
fingerprintnetworks
: an array ofgoogle_compute_region_instance_group
networkzones
: an array ofgoogle_compute_region_instance_group
zonesizes
: an array ofgoogle_compute_region_instance_group
sizeregions
: an array ofgoogle_compute_region_instance_group
regionnamed_ports
: an array ofgoogle_compute_region_instance_group
named_ports
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.