google_compute_machine_types resource
Use the google_compute_machine_types InSpec audit resource to to test a Google Cloud MachineType resource.
Examples
describe google_compute_machine_types(project: 'chef-gcp-inspec', zone: ' value_zone') do
it { should exist }
end
Properties
Properties that can be accessed from the google_compute_machine_types resource:
See google_compute_machine_type for more detailed information.
kinds: an array ofgoogle_compute_machine_typekindids: an array ofgoogle_compute_machine_typeidcreation_timestamps: an array ofgoogle_compute_machine_typecreation_timestampnames: an array ofgoogle_compute_machine_typenamedescriptions: an array ofgoogle_compute_machine_typedescriptionguest_cpus: an array ofgoogle_compute_machine_typeguest_cpusmemory_mbs: an array ofgoogle_compute_machine_typememory_mbimage_space_gbs: an array ofgoogle_compute_machine_typeimage_space_gbscratch_disks: an array ofgoogle_compute_machine_typescratch_disksmaximum_persistent_disks: an array ofgoogle_compute_machine_typemaximum_persistent_disksmaximum_persistent_disks_size_gbs: an array ofgoogle_compute_machine_typemaximum_persistent_disks_size_gbdeprecateds: an array ofgoogle_compute_machine_typedeprecatedzones: an array ofgoogle_compute_machine_typezoneself_links: an array ofgoogle_compute_machine_typeself_linkis_shared_cpus: an array ofgoogle_compute_machine_typeis_shared_cpuaccelerators: an array ofgoogle_compute_machine_typeaccelerators
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.