Skip to main content

google_service_networking_service_connections resource

Use the google_service_networking_service_connections InSpec audit resource to to test a Google Cloud service_connection resource.

Examples

    describe google_servicenetworking_service_connections(parent: ' value_parent',network: 'value_network') do
    it { should exist }
  end

Properties

Properties that can be accessed from the google_service_networking_service_connections resource:

See google_service_networking_service_connection for more detailed information.

  • networks: an array of google_service_networking_service_connection network
  • reserved_peering_ranges: an array of google_service_networking_service_connection reserved_peering_ranges
  • peerings: an array of google_service_networking_service_connection peering
  • services: an array of google_service_networking_service_connection service

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 https://servicenetworking.googleapis.com/ is enabled for the current project.

Thank you for your feedback!

×