title | platform |
---|---|
About the google_compute_zones resource |
gcp |
A google_compute_zones
is used to test a Google Zone resource
This resource has beta fields available. To retrieve these fields, include beta: true
in the constructor for the resource
google_compute_zones(project: 'chef-gcp-inspec').zone_names.each do |zone_name|
describe google_compute_zone(project: 'chef-gcp-inspec', name: zone_name) do
it { should exist }
it { should be_up }
end
end
Properties that can be accessed from the google_compute_zones
resource:
See google_compute_zone.md for more detailed information
creation_timestamps
: an array ofgoogle_compute_zone
creation_timestampdeprecateds
: an array ofgoogle_compute_zone
deprecateddescriptions
: an array ofgoogle_compute_zone
descriptionzone_ids
: an array ofgoogle_compute_zone
idzone_names
: an array ofgoogle_compute_zone
nameregions
: an array ofgoogle_compute_zone
regionzone_statuses
: an array ofgoogle_compute_zone
statusavailable_cpu_platforms
: an array ofgoogle_compute_zone
available_cpu_platforms
This resource supports all of the above properties as filter criteria, which can be used
with where
as a block or a method.
Ensure the Compute Engine API is enabled for the current project.