google_compute_machine_images resource
Use the google_compute_machine_images InSpec audit resource to to test a Google Cloud MachineImage resource.
Examples
describe google_compute_machine_images(project: 'chef-gcp-inspec') do
it { should exist }
end
Properties
Properties that can be accessed from the google_compute_machine_images resource:
See google_compute_machine_image for more detailed information.
kinds: an array ofgoogle_compute_machine_imagekindids: an array ofgoogle_compute_machine_imageidcreation_timestamps: an array ofgoogle_compute_machine_imagecreation_timestampnames: an array ofgoogle_compute_machine_imagenamedescriptions: an array ofgoogle_compute_machine_imagedescriptionself_links: an array ofgoogle_compute_machine_imageself_linksource_instances: an array ofgoogle_compute_machine_imagesource_instancestatuses: an array ofgoogle_compute_machine_imagestatussource_instance_properties: an array ofgoogle_compute_machine_imagesource_instance_propertiesinstance_properties: an array ofgoogle_compute_machine_imageinstance_propertiessaved_disks: an array ofgoogle_compute_machine_imagesaved_disksstorage_locations: an array ofgoogle_compute_machine_imagestorage_locationsmachine_image_encryption_keys: an array ofgoogle_compute_machine_imagemachine_image_encryption_keyguest_flushes: an array ofgoogle_compute_machine_imageguest_flushsource_disk_encryption_keys: an array ofgoogle_compute_machine_imagesource_disk_encryption_keystotal_storage_bytes: an array ofgoogle_compute_machine_imagetotal_storage_bytessatisfies_pzs: an array ofgoogle_compute_machine_imagesatisfies_pzs
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.