Data source
dcloud_iam_roles
The organization's IAM roles, preset and custom.
Example Usage
data "dcloud_iam_roles" "all" {}
locals {
operator_role_id = [for r in data.dcloud_iam_roles.all.items : r.id if r.name == "operator"][0]
}Schema
Read-Only
items(Attributes List) One object per element. (see below for nested schema)
Nested Schema for items
Read-Only:
description(String) Description.id(String) Role id.name(String) Name.type(String)presetorcustom.
Generated from the provider's schema.
Related