Ресурс google_iam_custom_role
Синтаксис
A google_iam_custom_role используется для проверки ресурса Google CustomRole.
Примеры
describe google_iam_custom_role(project: 'chef-gcp-inspec', name: 'admin-role') do
it { should exist }
its('stage') { should eq 'GA' }
its('included_permissions') { should eq ["iam.roles.list"] }
end
describe google_iam_custom_role(project: 'chef-gcp-inspec', name: 'nonexistent') do
it { should_not exist }
end
Свойства
Свойства, которые можно получить из ресурса google_iam_custom_role:
name- Название роли.
title- Читаемое человеком название роли. Обычно оно ограничено 100 байтами UTF-8.
description- Читаемое человеком описание роли.
included_permissions- Названия разрешений, предоставляемых этой ролью при привязке в политике IAM.
stage- Текущий этап запуска роли.
deleted- Текущее состояние удаления роли.
Разрешения GCP
Убедитесь, что для текущего проекта включен API управления идентификацией и доступом (IAM) по адресу https://console.cloud.google.com/apis/library/iam.googleapis.com/.
© 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_iam_custom_role/