dcloud iam roles set-trust-policy

Set which federated workloads (e.g. GitHub Actions jobs) may assume a role

IAM iam:UpdateAssumeRolePolicyChanges stateAsks before it deletes (-y skips)

Synopsis

dcloud iam roles set-trust-policy id --trust-policy trustPolicy

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --trust-policyRequired

    object

    The trust policy, as a JSON object or JSON text: which identity providers, and which token claims, may assume the role; null removes it, so nobody can

    Constraints: JSON

Example

dcloud iam roles set-trust-policy id --trust-policy '{}'

Generated from the API description, the same one the API checks requests against and the CLI is built from.