A google_redis_instances is used to test a Google Instance resource
This resource has beta fields available. To retrieve these fields, include beta: true in the constructor for the resource
describe google_redis_instances(project: 'chef-gcp-inspec', region: 'us-central1') do
its('tiers') { should include 'STANDARD_HA' }
its('memory_size_gbs') { should include '1' }
its('alternative_location_ids') { should include 'us-central1-f' }
its('redis_versions') { should include 'REDIS_3_2' }
its('display_names') { should include 'InSpec test instance' }
its('reserved_ip_ranges') { should include '192.168.0.0/29' }
end
Properties that can be accessed from the google_redis_instances resource:
See the google_redis_instance resource for more information.
alternative_location_idsgoogle_redis_instance alternative_location_idauthorized_networksgoogle_redis_instance authorized_networkconnect_modesgoogle_redis_instance connect_modecreate_timesgoogle_redis_instance create_timecurrent_location_idsgoogle_redis_instance current_location_iddisplay_namesgoogle_redis_instance display_namehostsgoogle_redis_instance hostlabelsgoogle_redis_instance labelsredis_configsgoogle_redis_instance redis_configslocation_idsgoogle_redis_instance location_idnamesgoogle_redis_instance namememory_size_gbsgoogle_redis_instance memory_size_gbportsgoogle_redis_instance portredis_versionsgoogle_redis_instance redis_versionreserved_ip_rangesgoogle_redis_instance reserved_ip_rangetiersgoogle_redis_instance tierregionsgoogle_redis_instance regionThis resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.
© 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_redis_instances/