On this page
google_redis_instances resource
Syntax
A google_redis_instances is used to test a Google Instance resource
Beta Resource
This resource has beta fields available. To retrieve these fields, include beta: true in the constructor for the resource
Examples
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
Properties that can be accessed from the google_redis_instances resource:
See the google_redis_instance resource for more information.
-
alternative_location_ids -
an array of
google_redis_instancealternative_location_id -
authorized_networks -
an array of
google_redis_instanceauthorized_network -
connect_modes -
an array of
google_redis_instanceconnect_mode -
create_times -
an array of
google_redis_instancecreate_time -
current_location_ids -
an array of
google_redis_instancecurrent_location_id -
display_names -
an array of
google_redis_instancedisplay_name -
hosts -
an array of
google_redis_instancehost -
labels -
an array of
google_redis_instancelabels -
redis_configs -
an array of
google_redis_instanceredis_configs -
location_ids -
an array of
google_redis_instancelocation_id -
names -
an array of
google_redis_instancename -
memory_size_gbs -
an array of
google_redis_instancememory_size_gb -
ports -
an array of
google_redis_instanceport -
redis_versions -
an array of
google_redis_instanceredis_version -
reserved_ip_ranges -
an array of
google_redis_instancereserved_ip_range -
tiers -
an array of
google_redis_instancetier -
regions -
an array of
google_redis_instanceregion
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
© 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/