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 googleredisinstance.md for more detailed information
* alternative_location_ids
: an array of google_redis_instance
alternativelocationid
* authorized_networks
: an array of google_redis_instance
authorizednetwork
* `connectmodes: an array of
googleredisinstanceconnect_mode
*
createtimes: an array of
googleredisinstance` createtime
* current_location_ids
: an array of google_redis_instance
currentlocationid
* display_names
: an array of google_redis_instance
displayname
* hosts
: an array of `googleredisinstancehost
*
labels: an array of
googleredisinstancelabels
*
redisconfigs: an array of
googleredisinstanceredis_configs
*
locationids: an array of
googleredisinstance` locationid
* names
: an array of google_redis_instance
name
* memory_size_gbs
: an array of google_redis_instance
memorysizegb
* ports
: an array of google_redis_instance
port
* redis_versions
: an array of google_redis_instance
redisversion
* `reservedipranges: an array of
googleredisinstance` reservediprange
* tiers
: an array of `googleredisinstancetier
*
regions: an array of
googleredis_instance` region
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.