google_compute_service_attachments resource
Use the google_compute_service_attachments InSpec audit resource to to test a Google Cloud ServiceAttachment resource.
Examples
describe google_compute_service_attachments(project: 'chef-gcp-inspec', region: ' value_region') do
it { should exist }
end
Properties
Properties that can be accessed from the google_compute_service_attachments resource:
See google_compute_service_attachment for more detailed information.
kinds: an array ofgoogle_compute_service_attachmentkindids: an array ofgoogle_compute_service_attachmentidcreation_timestamps: an array ofgoogle_compute_service_attachmentcreation_timestampnames: an array ofgoogle_compute_service_attachmentnamedescriptions: an array ofgoogle_compute_service_attachmentdescriptionself_links: an array ofgoogle_compute_service_attachmentself_linkregions: an array ofgoogle_compute_service_attachmentregionproducer_forwarding_rules: an array ofgoogle_compute_service_attachmentproducer_forwarding_ruletarget_services: an array ofgoogle_compute_service_attachmenttarget_serviceconnection_preferences: an array ofgoogle_compute_service_attachmentconnection_preferenceconnected_endpoints: an array ofgoogle_compute_service_attachmentconnected_endpointsnat_subnets: an array ofgoogle_compute_service_attachmentnat_subnetsenable_proxy_protocols: an array ofgoogle_compute_service_attachmentenable_proxy_protocolconsumer_reject_lists: an array ofgoogle_compute_service_attachmentconsumer_reject_listsconsumer_accept_lists: an array ofgoogle_compute_service_attachmentconsumer_accept_listspsc_service_attachment_ids: an array ofgoogle_compute_service_attachmentpsc_service_attachment_idfingerprints: an array ofgoogle_compute_service_attachmentfingerprintdomain_names: an array ofgoogle_compute_service_attachmentdomain_namesreconcile_connections: an array ofgoogle_compute_service_attachmentreconcile_connections
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.