Ресурс google_organization_iam_policy
Синтаксис
Для проверки ресурса политики доступа Google Organization Iam используется google_organization_iam_policy
Примеры
describe google_organization_iam_policy(name: "name") do
it { should exist }
end
google_organization_iam_policy(name: "name").bindings.each do |binding|
describe binding do
its('role') { should eq 'roles/editor'}
its('members') { should include 'user:testuser@example.com'}
end
end
Свойства
Свойства, доступные для ресурса google_organization_iam_policy:
iam_binding_roles- Список ролей, существующих в политике.
bindings- Связывает список участников с ролью.
role- Роль, назначенная участникам. Например, roles/viewer, roles/editor или roles/owner.
members- Указывает идентификаторы, запрашивающие доступ к ресурсу Cloud Platform.
audit_configs- Указывает конфигурацию аудита облачных журналов для этой политики.
service- Указывает сервис, который будет включён для аудита журналов. Например,
storage.googleapis.com,cloudsql.googleapis.com.allServices— специальное значение, охватывающее все сервисы. audit_log_configs- Конфигурация для журналирования каждого типа разрешения.
log_type- Тип журнала, который эта конфигурация включает. Например, ADMIN_READ, DATA_WRITE или DATA_READ
exempted_members- Указывает идентификаторы, которые не вызывают журналирование для этого типа разрешения.
Разрешения GCP
Убедитесь, что для текущего проекта включён API Cloud Resource Manager API.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_organization_iam_policy/