google_spanner_databases resource
Use the google_spanner_databases
InSpec audit resource to to test a Google Cloud Database resource.
Examples
describe.one do
google_spanner_databases(project: 'chef-gcp-inspec', instance: 'spinstance').names.each do |name|
describe name do
it { should match 'spdatabase' }
end
end
end
Properties
Properties that can be accessed from the google_spanner_databases
resource:
See google_spanner_database for more detailed information.
names
: an array ofgoogle_spanner_database
nameinstances
: an array ofgoogle_spanner_database
instance
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 Cloud Spanner API is enabled for the current project.