Manage custom IAM roles with Terraform. System roles (Owner, Admin, etc.) are immutable; only custom roles can be created. Permissions are diffed as a set.
Updated May 10, 2026Manages a custom IAM role. System roles (Owner, Admin, Operator, Member) are immutable and managed by the platform — they cannot be created, updated, or deleted via Terraform. The permissions attribute is a set; reordering does not produce a diff.
# Single role by UUIDdata "raff_role" "owner" { id = "<role-uuid>"}# All roles, optionally filtered by scopedata "raff_roles" "account" { scope = "account"}