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_type
kindids
: an array ofgoogle_compute_machine_type
idcreation_timestamps
: an array ofgoogle_compute_machine_type
creation_timestampnames
: an array ofgoogle_compute_machine_type
namedescriptions
: an array ofgoogle_compute_machine_type
descriptionguest_cpus
: an array ofgoogle_compute_machine_type
guest_cpusmemory_mbs
: an array ofgoogle_compute_machine_type
memory_mbimage_space_gbs
: an array ofgoogle_compute_machine_type
image_space_gbscratch_disks
: an array ofgoogle_compute_machine_type
scratch_disksmaximum_persistent_disks
: an array ofgoogle_compute_machine_type
maximum_persistent_disksmaximum_persistent_disks_size_gbs
: an array ofgoogle_compute_machine_type
maximum_persistent_disks_size_gbdeprecateds
: an array ofgoogle_compute_machine_type
deprecatedzones
: an array ofgoogle_compute_machine_type
zoneself_links
: an array ofgoogle_compute_machine_type
self_linkis_shared_cpus
: an array ofgoogle_compute_machine_type
is_shared_cpuaccelerators
: an array ofgoogle_compute_machine_type
accelerators
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.