google_project_iam_custom_roles resource
Use the google_project_iam_custom_roles InSpec audit resource to to test a Google Cloud CustomRole resource.
Examples
describe google_project_iam_custom_roles(project: 'chef-gcp-inspec') do
its('names') { should include "projects/project-id/roles/role-id" }
end
Properties
Properties that can be accessed from the google_project_iam_custom_roles resource:
See google_project_iam_custom_role for more detailed information.
names: an array ofgoogle_project_iam_custom_rolenametitles: an array ofgoogle_project_iam_custom_roletitledescriptions: an array ofgoogle_project_iam_custom_roledescriptionincluded_permissions: an array ofgoogle_project_iam_custom_roleincluded_permissionsstages: an array ofgoogle_project_iam_custom_rolestagedeleteds: an array ofgoogle_project_iam_custom_roledeleted
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 Identity and Access Management (IAM) API is enabled for the current project.