A google_spanner_instances is used to test a Google Instance resource
describe.one do
google_spanner_instances(project: 'chef-gcp-inspec', config: 'regional-us-east1').configs.each do |config|
describe config do
it { should match 'regional-us-east1' }
end
end
end
Properties that can be accessed from the google_spanner_instances resource:
See the google_spanner_instance resource for more information.
namesgoogle_spanner_instance nameconfigsgoogle_spanner_instance configdisplay_namesgoogle_spanner_instance display_namenode_countsgoogle_spanner_instance node_countlabelsgoogle_spanner_instance labelsThis resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.
Ensure the Cloud Spanner API is enabled for the current project.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_spanner_instances/