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 google_redis_instance for more detailed information.
alternative_location_ids: an array ofgoogle_redis_instancealternative_location_idauth_enableds: an array ofgoogle_redis_instanceauth_enabledauthorized_networks: an array ofgoogle_redis_instanceauthorized_networkconnect_modes: an array ofgoogle_redis_instanceconnect_modecreate_times: an array ofgoogle_redis_instancecreate_timecurrent_location_ids: an array ofgoogle_redis_instancecurrent_location_iddisplay_names: an array ofgoogle_redis_instancedisplay_namehosts: an array ofgoogle_redis_instancehostlabels: an array ofgoogle_redis_instancelabelsredis_configs: an array ofgoogle_redis_instanceredis_configslocation_ids: an array ofgoogle_redis_instancelocation_idnames: an array ofgoogle_redis_instancenamememory_size_gbs: an array ofgoogle_redis_instancememory_size_gbports: an array ofgoogle_redis_instanceportpersistence_iam_identities: an array ofgoogle_redis_instancepersistence_iam_identityredis_versions: an array ofgoogle_redis_instanceredis_versionreserved_ip_ranges: an array ofgoogle_redis_instancereserved_ip_rangetiers: an array ofgoogle_redis_instancetiertransit_encryption_modes: (Beta only) an array ofgoogle_redis_instancetransit_encryption_modeserver_ca_certs: (Beta only) an array ofgoogle_redis_instanceserver_ca_certsregions: an array ofgoogle_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.