title | platform |
---|---|
About the google_project_logging_audit_config Resource |
gcp |
Use the google_compute_zone
InSpec audit resource to test properties of a single GCP compute zone.
A google_project_logging_audit_config
resource block declares the tests for a single GCP zone by project and name.
describe google_project_logging_audit_config(project: 'chef-inspec-gcp') do
it { should exist }
end
The following examples show how to use this InSpec audit resource.
describe google_project_logging_audit_config(project: 'chef-inspec-gcp') do
its('default_types') { should include 'ADMIN_READ' }
end
describe google_compute_zone(project: 'chef-inspec-gcp', zone: 'us-east1-b') do
it { should_not have_default_exempted_members }
end
default_types
,default_exempted_members
Ensure the Cloud Resource Manager API is enabled for the project.