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

Nested Schema for items

Read-Only:

  • description (String) Description.
  • id (String) Role id.
  • name (String) Name.
  • type (String) preset or custom.

Generated from the provider's schema.