google_resourcemanager_folders resource
Use the google_resourcemanager_folders
InSpec audit resource to to test a Google Cloud Folder resource.
Examples
describe.one do
google_resourcemanager_folders(parent: 'organizations/12345').display_names.each do |display_name|
describe display_name do
it { should eq 'inspec-gcp-folder' }
end
end
end
Properties
Properties that can be accessed from the google_resourcemanager_folders
resource:
See google_resourcemanager_folder for more detailed information.
names
: an array ofgoogle_resourcemanager_folder
namelifecycle_states
: an array ofgoogle_resourcemanager_folder
lifecycle_statecreate_times
: an array ofgoogle_resourcemanager_folder
create_timeparents
: an array ofgoogle_resourcemanager_folder
parentdisplay_names
: an array ofgoogle_resourcemanager_folder
display_name
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
Ensure the Cloud Resource Manager API is enabled for the current project.