Skip to main content

google_compute_global_network_endpoint_groups resource

Use the google_compute_global_network_endpoint_groups InSpec audit resource to to test a Google Cloud GlobalNetworkEndpointGroup resource.

Examples

describe google_compute_global_network_endpoint_groups(project: 'chef-gcp-inspec') do
  it { should exist }
  its('default_ports') { should include '90' }
  its('names') { should include 'inspec-gcp-global-endpoint-group' }
  its('network_endpoint_types'){ should include 'INTERNET_IP_PORT' }
end

Properties

Properties that can be accessed from the google_compute_global_network_endpoint_groups resource:

See google_compute_global_network_endpoint_group for more detailed information.

  • kinds: an array of google_compute_global_network_endpoint_group kind
  • ids: an array of google_compute_global_network_endpoint_group id
  • creation_timestamps: an array of google_compute_global_network_endpoint_group creation_timestamp
  • self_links: an array of google_compute_global_network_endpoint_group self_link
  • names: an array of google_compute_global_network_endpoint_group name
  • descriptions: an array of google_compute_global_network_endpoint_group description
  • network_endpoint_types: an array of google_compute_global_network_endpoint_group network_endpoint_type
  • sizes: an array of google_compute_global_network_endpoint_group size
  • regions: an array of google_compute_global_network_endpoint_group region
  • zones: an array of google_compute_global_network_endpoint_group zone
  • networks: an array of google_compute_global_network_endpoint_group network
  • subnetworks: an array of google_compute_global_network_endpoint_group subnetwork
  • default_ports: an array of google_compute_global_network_endpoint_group default_port
  • annotations: an array of google_compute_global_network_endpoint_group annotations
  • cloud_runs: an array of google_compute_global_network_endpoint_group cloud_run
  • app_engines: an array of google_compute_global_network_endpoint_group app_engine
  • cloud_functions: an array of google_compute_global_network_endpoint_group cloud_function
  • psc_target_services: an array of google_compute_global_network_endpoint_group psc_target_service
  • psc_data: an array of google_compute_global_network_endpoint_group psc_data

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!

×