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_groupcreation_timestampdescriptions: an array ofgoogle_compute_region_instance_groupdescriptionids: an array ofgoogle_compute_region_instance_groupidnames: an array ofgoogle_compute_region_instance_groupnamefingerprints: an array ofgoogle_compute_region_instance_groupfingerprintnetworks: an array ofgoogle_compute_region_instance_groupnetworkzones: an array ofgoogle_compute_region_instance_groupzonesizes: an array ofgoogle_compute_region_instance_groupsizeregions: an array ofgoogle_compute_region_instance_groupregionnamed_ports: an array ofgoogle_compute_region_instance_groupnamed_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.