Skip to main content

google_compute_node_types resource

Use the google_compute_node_types InSpec audit resource to to test a Google Cloud NodeType resource.

Examples

    describe google_compute_v1_node_types(project: 'chef-gcp-inspec', zone: ' value_zone') do
    it { should exist }
  end

Properties

Properties that can be accessed from the google_compute_node_types resource:

See google_compute_node_type for more detailed information.

  • kinds: an array of google_compute_node_type kind
  • ids: an array of google_compute_node_type id
  • creation_timestamps: an array of google_compute_node_type creation_timestamp
  • names: an array of google_compute_node_type name
  • descriptions: an array of google_compute_node_type description
  • cpu_platforms: an array of google_compute_node_type cpu_platform
  • guest_cpus: an array of google_compute_node_type guest_cpus
  • memory_mbs: an array of google_compute_node_type memory_mb
  • local_ssd_gbs: an array of google_compute_node_type local_ssd_gb
  • deprecateds: an array of google_compute_node_type deprecated
  • zones: an array of google_compute_node_type zone
  • self_links: an array of google_compute_node_type self_link

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.

Thank you for your feedback!

×